Core/Totem: Immune to all positive spells.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f774873bfd97039ce63933a538a907a0ed67c2c)
This commit is contained in:
@@ -146,11 +146,12 @@ namespace Game.Entities
|
|||||||
|
|
||||||
public override bool IsImmunedToSpellEffect(SpellInfo spellInfo, SpellEffectInfo spellEffectInfo, WorldObject caster)
|
public override bool IsImmunedToSpellEffect(SpellInfo spellInfo, SpellEffectInfo spellEffectInfo, WorldObject caster)
|
||||||
{
|
{
|
||||||
// @todo possibly all negative auras immune?
|
// immune to all positive spells, except of stoneclaw totem absorb and sentry totem bind sight
|
||||||
if (GetEntry() == 5925)
|
// totems positive spells have unit_caster target
|
||||||
return false;
|
if (spellEffectInfo.Effect != SpellEffectName.Dummy &&
|
||||||
|
spellEffectInfo.Effect != SpellEffectName.ScriptEffect &&
|
||||||
if (spellEffectInfo == null)
|
spellInfo.IsPositive() && spellEffectInfo.TargetA.GetTarget() != Targets.UnitCaster &&
|
||||||
|
spellEffectInfo.TargetA.GetCheckType() != SpellTargetCheckTypes.Entry)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
switch (spellEffectInfo.ApplyAuraName)
|
switch (spellEffectInfo.ApplyAuraName)
|
||||||
|
|||||||
Reference in New Issue
Block a user