Remove double RNG for mana pres

This still may not be 100% correct, but it may give us the correct average
savings, but for more work than we need to do, but I don't need to
rewrite code! Yet.
This commit is contained in:
Michael Cook (mackal) 2017-05-24 22:04:43 -04:00
parent 962fcc2e8a
commit 7781dc6ffe

View File

@ -363,11 +363,6 @@ int32 Client::GetActSpellCost(uint16 spell_id, int32 cost)
int16 focus_redux = GetFocusEffect(focusManaCost, spell_id); int16 focus_redux = GetFocusEffect(focusManaCost, spell_id);
if(focus_redux > 0)
{
PercentManaReduction += zone->random.Real(1, (double)focus_redux);
}
cost -= (cost * (PercentManaReduction / 100)); cost -= (cost * (PercentManaReduction / 100));
// Gift of Mana - reduces spell cost to 1 mana // Gift of Mana - reduces spell cost to 1 mana