From 22c57b92db54a4354f98600b55caca386f76a751 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 23 Jun 2021 14:43:49 -0400 Subject: [PATCH] Core/Spell: killed deprecated code which randomly changed powercost for missed spells Port From (https://github.com/TrinityCore/TrinityCore/commit/c43f61df3d1612bfe87f2df499e2687c87cb1208) --- Source/Game/Spells/Spell.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 356ed0c09..1c37d201a 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -4304,10 +4304,7 @@ namespace Game.Spells continue; } - if (hit) - m_caster.ModifyPower(cost.Power, -cost.Amount); - else - m_caster.ModifyPower(cost.Power, -RandomHelper.IRand(0, cost.Amount / 4)); + m_caster.ModifyPower(cost.Power, -cost.Amount); } }