Core/Spell: killed deprecated code which randomly changed powercost for missed spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/c43f61df3d1612bfe87f2df499e2687c87cb1208)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user