fix(Core/SmartScript): Change AREA_CASTING to align with VICTIM_CASTING on timer recalculation (#24563)

This commit is contained in:
Gultask
2026-02-06 18:05:59 -03:00
committed by GitHub
parent 8249ca51ed
commit f87752de24
2 changed files with 83 additions and 4 deletions

View File

@@ -4790,12 +4790,10 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax);
return;
}
// If no targets are found and it's off cooldown, check again in 1200ms
RecalcTimer(e, 1200, 1200);
break;
}
// No targets found
RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax);
break;
}
case SMART_EVENT_AREA_RANGE: