mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/SAI): Add cooldown fields for ActionDone (#24282)
This commit is contained in:
@@ -4536,6 +4536,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
|||||||
{
|
{
|
||||||
if (e.event.doAction.eventId != var0)
|
if (e.event.doAction.eventId != var0)
|
||||||
return;
|
return;
|
||||||
|
RecalcTimer(e, e.event.doAction.cooldownMin, e.event.doAction.cooldownMax);
|
||||||
ProcessAction(e, unit, var0);
|
ProcessAction(e, unit, var0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -427,6 +427,8 @@ struct SmartEvent
|
|||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
uint32 eventId;
|
uint32 eventId;
|
||||||
|
uint32 cooldownMin;
|
||||||
|
uint32 cooldownMax;
|
||||||
} doAction;
|
} doAction;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
|||||||
Reference in New Issue
Block a user