diff options
author | megamage <none@none> | 2009-07-24 09:04:25 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-24 09:04:25 +0800 |
commit | 0c4c487df0f9e52179249af805260d024c46334d (patch) | |
tree | 069d936c1c4e8ddc485285214121965074c2e1ad /src | |
parent | 5b4006ceed034009e76fe5cf58b3ce6e5217f985 (diff) |
[8195] Add spell check data for dummy effect tail... Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 9260a738683..75a707b3105 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1502,7 +1502,7 @@ void Spell::EffectDummy(uint32 i) m_caster->CastSpell(unitTarget, 5940, true); return; } - case 14185: // Preparation Rogue + case 14185: // Preparation { if(m_caster->GetTypeId()!=TYPEID_PLAYER) return; @@ -1530,7 +1530,7 @@ void Spell::EffectDummy(uint32 i) case SPELLFAMILY_HUNTER: switch(m_spellInfo->Id) { - case 23989: //Readiness talent + case 23989: // Readiness talent { if(m_caster->GetTypeId()!=TYPEID_PLAYER) return; @@ -1688,8 +1688,8 @@ void Spell::EffectDummy(uint32 i) } break; case SPELLFAMILY_SHAMAN: - //Shaman Rockbiter Weapon - if (m_spellInfo->SpellFamilyFlags.IsEqual(0x400000)) + // Rockbiter Weapon + if (m_spellInfo->SpellFamilyFlags[0] & 0x400000) { // TODO: use expect spell for enchant (if exist talent) // In 3.0.3 no mods present for rockbiter @@ -1762,8 +1762,7 @@ void Spell::EffectDummy(uint32 i) if(!unitTarget || unitTarget->getPowerType() != POWER_MANA) return; // Glyph of Mana Tide - Unit *owner = m_caster->GetOwner(); - if (owner) + if(Unit *owner = m_caster->GetOwner()) if (AuraEffect *dummy = owner->GetDummyAura(55441)) damage+=dummy->GetAmount(); // Regenerate 6% of Total Mana Every 3 secs |