mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
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:
parent
962fcc2e8a
commit
7781dc6ffe
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user