Skip to content
Permalink
Browse files
Merge pull request #15402 from chaodhib/taunt_player
  • Loading branch information
jackpoz committed Dec 9, 2015
2 parents c182ea0 + 6d080d0 commit 80ed03a84d2a0cbdd0d37d9c57994724333ae798
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
@@ -2149,6 +2149,17 @@ void Player::RemoveFromWorld()
}
}

bool Player::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
{
// players are immune to taunt (the aura and the spell effect)
if (spellInfo->Effects[index].IsAura(SPELL_AURA_MOD_TAUNT))
return true;
if (spellInfo->Effects[index].IsEffect(SPELL_EFFECT_ATTACK_ME))
return true;

return Unit::IsImmunedToSpellEffect(spellInfo, index);
}

void Player::RegenerateAll()
{
//if (m_regenTimer <= 500)
@@ -1034,6 +1034,8 @@ class Player : public Unit, public GridObject<Player>

static bool BuildEnumData(PreparedQueryResult result, WorldPacket* data);

bool IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const override;

void SetInWater(bool apply);

bool IsInWater() const override { return m_isInWater; }

0 comments on commit 80ed03a

Please sign in to comment.