Core/Script: Code style and remove unused core.
Signed-off-by: Gyx <[email protected]>
This commit is contained in:
@@ -926,9 +926,7 @@ struct dummy_dragonAI : public ScriptedAI
|
||||
if (instance && instance->GetData(TYPE_SARTHARION_EVENT) != IN_PROGRESS)
|
||||
instance->SetData(TYPE_SHADRON_PREKILLED, 1);
|
||||
if (Creature* pAcolyte = me->FindNearestCreature(NPC_ACOLYTE_OF_SHADRON, 100.0f))
|
||||
{
|
||||
pAcolyte->Kill(pAcolyte);
|
||||
}
|
||||
break;
|
||||
case NPC_VESPERON:
|
||||
iTextId = SAY_VESPERON_DEATH;
|
||||
@@ -936,9 +934,7 @@ struct dummy_dragonAI : public ScriptedAI
|
||||
if (instance && instance->GetData(TYPE_SARTHARION_EVENT) != IN_PROGRESS)
|
||||
instance->SetData(TYPE_VESPERON_PREKILLED, 1);
|
||||
if (Creature* pAcolyte = me->FindNearestCreature(NPC_ACOLYTE_OF_VESPERON, 100.0f))
|
||||
{
|
||||
pAcolyte->Kill(pAcolyte);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,11 +184,8 @@ class boss_kologarn : public CreatureScript
|
||||
|
||||
if (Creature* rubbleStalker = who->FindNearestCreature(NPC_RUBBLE_STALKER, 70.0f))
|
||||
{
|
||||
if (rubbleStalker)
|
||||
{
|
||||
rubbleStalker->CastSpell(rubbleStalker, SPELL_FALLING_RUBBLE, true);
|
||||
rubbleStalker->CastSpell(rubbleStalker, SPELL_SUMMON_RUBBLE, true);
|
||||
}
|
||||
rubbleStalker->CastSpell(rubbleStalker, SPELL_FALLING_RUBBLE, true);
|
||||
rubbleStalker->CastSpell(rubbleStalker, SPELL_SUMMON_RUBBLE, true);
|
||||
}
|
||||
|
||||
if (!right && !left)
|
||||
|
||||
@@ -445,6 +445,7 @@ public:
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (uiDespawnTimer <= diff)
|
||||
@@ -455,7 +456,6 @@ public:
|
||||
} else uiDespawnTimer -= diff;
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_ingvar_the_plunderer()
|
||||
|
||||
Reference in New Issue
Block a user