mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Creatures: Moved autoattack handling from scripts to game
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -292,8 +292,6 @@ class boss_high_priestess_azil : public CreatureScript
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -174,8 +174,6 @@ class boss_ozruk : public CreatureScript
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -284,8 +284,6 @@ class boss_slabhide : public CreatureScript
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user