mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Spell: killed deprecated code which randomly changed powercost for missed spells
Added in80d3cd43f6Closes #5954 (cherry picked from commitb1072faa50)
This commit is contained in:
@@ -4761,10 +4761,7 @@ void Spell::TakePower()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (hit)
|
||||
m_caster->ModifyPower(powerType, -cost.Amount);
|
||||
else
|
||||
m_caster->ModifyPower(powerType, -irand(0, cost.Amount / 4));
|
||||
m_caster->ModifyPower(powerType, -cost.Amount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user