fix(Scripts/SAI): Add cooldown fields for ActionDone (#24282)

This commit is contained in:
Gultask 2026-01-01 05:45:11 -03:00 committed by GitHub
parent ea0bf067b2
commit 3cff84de99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -4536,6 +4536,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
{
if (e.event.doAction.eventId != var0)
return;
RecalcTimer(e, e.event.doAction.cooldownMin, e.event.doAction.cooldownMax);
ProcessAction(e, unit, var0);
break;
}

View file

@ -427,6 +427,8 @@ struct SmartEvent
struct
{
uint32 eventId;
uint32 cooldownMin;
uint32 cooldownMax;
} doAction;
struct