Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. bool Totem::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
  2. {
  3. // xinef: immune to all positive spells, except of stoneclaw totem absorb and sentry totem bind sight
  4. // totems positive spells have unit_caster target
  5. if (spellInfo->Effects[index].Effect != SPELL_EFFECT_DUMMY &&
  6. spellInfo->Effects[index].Effect != SPELL_EFFECT_SCRIPT_EFFECT &&
  7. spellInfo->IsPositive() && spellInfo->Effects[index].TargetA.GetTarget() != TARGET_UNIT_CASTER &&
  8. spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277
  9. && spellInfo->Id != 6277 && spellInfo->Id != 3411)
  10. return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement