Skip to content

Commit d694f9d

Browse files
committed
[Core] Do not apply recharge rate when adjusting max charges.
* This is already included by cooldown_duration as part of the recharge multiplier.
1 parent e6e422b commit d694f9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/sim/cooldown.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ void cooldown_t::set_max_charges( int new_max_charges )
771771
* Use adjust to go from 0 charges and 0 cooldown progress to the previously calculated charges we should have after
772772
* changing max charges by making the cooldown advance in time by the multiple of the cooldown.
773773
*/
774-
adjust( -charges_fractional * cooldown_t::cooldown_duration( this ) );
774+
adjust( -charges_fractional * cooldown_t::cooldown_duration( this ), true, false );
775775
}
776776

777777
// If the player is queueing an action that uses this cooldown, cancel it.

0 commit comments

Comments
 (0)