mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9020] Re-implement 1680 (and triggred spell for 46924) in less hack way.
This commit is contained in:
parent
cc9072c89f
commit
6b78ed534d
3 changed files with 9 additions and 13 deletions
|
|
@ -4580,14 +4580,8 @@ void Spell::EffectWeaponDmg(uint32 i)
|
|||
{
|
||||
case SPELLFAMILY_WARRIOR:
|
||||
{
|
||||
// Whirlwind, single only spell with 2 weapon white damage apply if have
|
||||
if(m_caster->GetTypeId()==TYPEID_PLAYER && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x00000400000000)))
|
||||
{
|
||||
if(((Player*)m_caster)->GetWeaponForAttack(OFF_ATTACK, true, true))
|
||||
spell_bonus += m_caster->CalculateDamage (OFF_ATTACK, normalized);
|
||||
}
|
||||
// Devastate bonus and sunder armor refresh
|
||||
else if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508)
|
||||
if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508)
|
||||
{
|
||||
uint32 stack = 0;
|
||||
// Need refresh all Sunder Armor auras from this caster
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue