mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Force changing the timer_time for attack timers
Should fix issues with waiting for a slow timer after a cure
This commit is contained in:
+3
-1
@@ -141,11 +141,13 @@ uint32 Timer::GetRemainingTime() {
|
||||
}
|
||||
}
|
||||
|
||||
void Timer::SetAtTrigger(uint32 in_set_at_trigger, bool iEnableIfDisabled) {
|
||||
void Timer::SetAtTrigger(uint32 in_set_at_trigger, bool iEnableIfDisabled, bool ChangeTimerTime) {
|
||||
set_at_trigger = in_set_at_trigger;
|
||||
if (!Enabled() && iEnableIfDisabled) {
|
||||
Enable();
|
||||
}
|
||||
if (ChangeTimerTime)
|
||||
timer_time = set_at_trigger;
|
||||
}
|
||||
|
||||
void Timer::Trigger()
|
||||
|
||||
Reference in New Issue
Block a user