mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
Scripts/Freya: removed obsolete code
(cherry picked from commitd812505fc2) Makes travis happy (cherry picked from commitab2466ac01)
This commit is contained in:
@@ -171,8 +171,7 @@ enum FreyaNpcs
|
||||
|
||||
enum FreyaActions
|
||||
{
|
||||
ACTION_ELDER_DEATH = 1,
|
||||
ACTION_ELDER_FREYA_KILLED = 2
|
||||
ACTION_ELDER_FREYA_KILLED = 1
|
||||
};
|
||||
|
||||
enum FreyaEvents
|
||||
@@ -619,7 +618,7 @@ class boss_freya : public CreatureScript
|
||||
Elder->AttackStop();
|
||||
Elder->CombatStop(true);
|
||||
Elder->DeleteThreatList();
|
||||
Elder->GetAI()->DoAction(ACTION_ELDER_FREYA_KILLED);
|
||||
Elder->AI()->DoAction(ACTION_ELDER_FREYA_KILLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -705,19 +704,10 @@ class boss_elder_brightleaf : public CreatureScript
|
||||
Talk(SAY_ELDER_SLAY);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
_JustDied();
|
||||
Talk(SAY_ELDER_DEATH);
|
||||
|
||||
if (killer->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (Creature* Ironbranch = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_IRONBRANCH)))
|
||||
Ironbranch->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
|
||||
if (Creature* Stonebark = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_STONEBARK)))
|
||||
Stonebark->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
@@ -812,19 +802,10 @@ class boss_elder_stonebark : public CreatureScript
|
||||
Talk(SAY_ELDER_SLAY);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
_JustDied();
|
||||
Talk(SAY_ELDER_DEATH);
|
||||
|
||||
if (killer->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (Creature* Ironbranch = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_IRONBRANCH)))
|
||||
Ironbranch->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
|
||||
if (Creature* Brightleaf = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_BRIGHTLEAF)))
|
||||
Brightleaf->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
@@ -925,19 +906,10 @@ class boss_elder_ironbranch : public CreatureScript
|
||||
Talk(SAY_ELDER_SLAY);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
_JustDied();
|
||||
Talk(SAY_ELDER_DEATH);
|
||||
|
||||
if (killer->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (Creature* Brightleaf = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_BRIGHTLEAF)))
|
||||
Brightleaf->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
|
||||
if (Creature* Stonebark = ObjectAccessor::GetCreature(*me, instance->GetGuidData(BOSS_STONEBARK)))
|
||||
Stonebark->AI()->DoAction(ACTION_ELDER_DEATH);
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
|
||||
Reference in New Issue
Block a user