From d1485ad482af182eb4783cb577c4de34573d4919 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 24 Feb 2021 18:49:18 -0500 Subject: [PATCH] Core/Spells: Fixed spells using SPELL_EFFECT_POWER_BURN not working when combined with other effect types that hit other units and power burn hits caster Port From (https://github.com/TrinityCore/TrinityCore/commit/23aa13257a0af0143651f48ac3af65435ba9f346) --- Source/Game/Spells/Spell.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 60a8c3ebb..d2e2578dc 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -4960,19 +4960,6 @@ namespace Game.Spells break; } - case SpellEffectName.PowerBurn: - case SpellEffectName.PowerDrain: - { - // Can be area effect, Check only for players and not check if target - caster (spell can have multiply drain/burn effects) - if (m_caster.IsTypeId(TypeId.Player)) - { - Unit target = m_targets.GetUnitTarget(); - if (target != null) - if (target != m_caster && unitTarget.GetPowerType() != (PowerType)effect.MiscValue) - return SpellCastResult.BadTargets; - } - break; - } case SpellEffectName.Charge: { if (!_triggeredCastFlags.HasAnyFlag(TriggerCastFlags.IgnoreCasterAuras) && m_caster.HasUnitState(UnitState.Root))