mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Fix] Prevent Ranged Attack from being triggered at arbitrary rate (#4879)
This commit is contained in:
parent
24f8d88333
commit
f3697e633c
@ -6677,7 +6677,9 @@ void Client::SetAttackTimer()
|
||||
else
|
||||
speed = static_cast<int>(speed + ((hhe / 100.0f) * delay));
|
||||
}
|
||||
TimerToUse->SetAtTrigger(std::max(RuleI(Combat, MinHastedDelay), speed), true, true);
|
||||
|
||||
bool reinit = !TimerToUse->Enabled();
|
||||
TimerToUse->SetAtTrigger(std::max(RuleI(Combat, MinHastedDelay), speed), reinit, reinit);
|
||||
|
||||
if (i == EQ::invslot::slotPrimary) {
|
||||
primary_speed = speed;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user