From 6e1b85ad97c283317d2cfdfc8738e474166adfaa Mon Sep 17 00:00:00 2001 From: Warlockbugs Date: Fri, 29 Sep 2017 17:51:02 +0300 Subject: [PATCH] Relations Stage 2 Rollout: Migrate from IsHostileTo in Soulshatter dummy May be excessive. To be reviewed later. --- src/game/Spells/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Spells/SpellEffects.cpp b/src/game/Spells/SpellEffects.cpp index cb0d181f286..2c2d15d3440 100644 --- a/src/game/Spells/SpellEffects.cpp +++ b/src/game/Spells/SpellEffects.cpp @@ -1443,7 +1443,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) } case 29858: // Soulshatter { - if (unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT && unitTarget->IsHostileTo(m_caster)) + if (unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT && unitTarget->CanAttack(m_caster)) m_caster->CastSpell(unitTarget, 32835, TRIGGERED_OLD_TRIGGERED); return;