refactor(Core/Scripts): remove redundant scheduler SetValidator calls (#25189)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -60,11 +60,6 @@ public:
|
||||
_initTalk = false;
|
||||
_canTalk = true;
|
||||
_minionInCombat = false;
|
||||
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
|
||||
@@ -172,12 +172,7 @@ private:
|
||||
struct boss_taldaram : public BossAI
|
||||
{
|
||||
boss_taldaram(Creature* pCreature) : BossAI(pCreature, DATA_PRINCE_TALDARAM), vanishDamage(0)
|
||||
{
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
}
|
||||
{ }
|
||||
|
||||
void InitializeAI() override
|
||||
{
|
||||
|
||||
@@ -43,12 +43,7 @@ Position const EckCombatStartPosition = { 1638.55f, 919.76f, 104.95f, 0.00f };
|
||||
struct boss_eck : public BossAI
|
||||
{
|
||||
boss_eck(Creature* creature) : BossAI(creature, DATA_ECK_THE_FEROCIOUS)
|
||||
{
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
}
|
||||
{ }
|
||||
|
||||
void InitializeAI() override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user