Core/Spell: fix some issues with taunt spells
This commit is contained in:
1 parent
2fefbc800b
commit
b5e177edbc
1 file changed
+4
@@ -2439,6 +2439,10 @@ void Spell::TargetInfo::PreprocessTarget(Spell* spell)
|
||||
else if (MissCondition == SPELL_MISS_REFLECT && ReflectResult == SPELL_MISS_NONE)
|
||||
_spellHitTarget = spell->m_caster->ToUnit();
|
||||
|
||||
// Ensure that a player target is put in combat by a taunt, even if they result immune clientside
|
||||
if ((MissCondition == SPELL_MISS_IMMUNE || MissCondition == SPELL_MISS_IMMUNE2) && spell->m_caster->GetTypeId() == TYPEID_PLAYER && unit->GetTypeId() == TYPEID_PLAYER && spell->m_caster->IsValidAttackTarget(unit, spell->GetSpellInfo()))
|
||||
unit->SetInCombatWith(spell->m_caster->ToPlayer());
|
||||
|
||||
_enablePVP = false; // need to check PvP state before spell effects, but act on it afterwards
|
||||
if (_spellHitTarget)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user