Core/Creatures: Moved autoattack handling from scripts to game

This commit is contained in:
Shauren
2024-01-08 22:23:12 +01:00
parent eeb4407f07
commit 605e5f94c0
425 changed files with 393 additions and 1816 deletions

View File

@@ -228,8 +228,6 @@ class boss_corborus : public CreatureScript
break;
}
}
DoMeleeAttackIfReady();
}
void JustSummoned(Creature* summon) override
@@ -303,8 +301,6 @@ class npc_rock_borer : public CreatureScript
break;
}
}
DoMeleeAttackIfReady();
}
private:

View File

@@ -292,8 +292,6 @@ class boss_high_priestess_azil : public CreatureScript
break;
}
}
DoMeleeAttackIfReady();
}
private:

View File

@@ -174,8 +174,6 @@ class boss_ozruk : public CreatureScript
break;
}
}
DoMeleeAttackIfReady();
}
};

View File

@@ -284,8 +284,6 @@ class boss_slabhide : public CreatureScript
break;
}
}
DoMeleeAttackIfReady();
}
private:

View File

@@ -108,6 +108,7 @@ class npc_sc_millhouse_manastorm : public CreatureScript
_instance(creature->GetInstanceScript())
{
events.SetPhase(PHASE_MILLHOUSE_GROUP_1);
me->SetCanMelee(false); // DoSpellAttackIfReady
}
void ScheduleEvents()