Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Totem::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
- {
- // xinef: immune to all positive spells, except of stoneclaw totem absorb and sentry totem bind sight
- // totems positive spells have unit_caster target
- if (spellInfo->Effects[index].Effect != SPELL_EFFECT_DUMMY &&
- spellInfo->Effects[index].Effect != SPELL_EFFECT_SCRIPT_EFFECT &&
- spellInfo->IsPositive() && spellInfo->Effects[index].TargetA.GetTarget() != TARGET_UNIT_CASTER &&
- spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277
- && spellInfo->Id != 6277 && spellInfo->Id != 3411)
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement