Scripts/Spell: extend SpellScript class: add target aura accessors and functions which prevent various effects of the spell from being executed. Check out SpellScript.h for details

--HG--
branch : trunk
This commit is contained in:
QAston
2010-08-19 14:31:31 +02:00
parent d4605c5f7f
commit 30bcf8c659
6 changed files with 89 additions and 7 deletions
+1 -1
View File
@@ -1578,7 +1578,7 @@ bool Unit::IsDamageReducedByArmor(SpellSchoolMask schoolMask, SpellEntry const *
// bleeding effects are not reduced by armor
if (effIndex != MAX_SPELL_EFFECTS && spellInfo->EffectApplyAuraName[effIndex] == SPELL_AURA_PERIODIC_DAMAGE)
if (GetSpellMechanicMask(spellInfo, effIndex) & MECHANIC_BLEED)
if (GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
return false;
}
return true;