mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core: Whitespace cleanup
This commit is contained in:
@@ -89,7 +89,7 @@ class boss_ayamiss : public CreatureScript
|
||||
_enraged = false;
|
||||
SetCombatMovement(false);
|
||||
}
|
||||
|
||||
|
||||
void JustSummoned(Creature* who)
|
||||
{
|
||||
switch (who->GetEntry())
|
||||
@@ -106,7 +106,7 @@ class boss_ayamiss : public CreatureScript
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
{
|
||||
if (type == POINT_MOTION_TYPE)
|
||||
@@ -122,17 +122,17 @@ class boss_ayamiss : public CreatureScript
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void EnterEvadeMode()
|
||||
{
|
||||
me->ClearUnitState(UNIT_STATE_ROOT);
|
||||
BossAI::EnterEvadeMode();
|
||||
}
|
||||
|
||||
|
||||
void EnterCombat(Unit* attacker)
|
||||
{
|
||||
BossAI::EnterCombat(attacker);
|
||||
|
||||
|
||||
events.ScheduleEvent(EVENT_STINGER_SPRAY, urand(20000, 30000));
|
||||
events.ScheduleEvent(EVENT_POISON_STINGER, 5000);
|
||||
events.ScheduleEvent(EVENT_SUMMON_SWARMER, 5000);
|
||||
@@ -148,7 +148,7 @@ class boss_ayamiss : public CreatureScript
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (_phase == PHASE_AIR && me->GetHealthPct() < 70.0f)
|
||||
@@ -168,7 +168,7 @@ class boss_ayamiss : public CreatureScript
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
|
||||
if (!_enraged && me->GetHealthPct() < 20.0f)
|
||||
{
|
||||
DoCast(me, SPELL_FRENZY);
|
||||
@@ -247,7 +247,7 @@ class npc_hive_zara_larva : public CreatureScript
|
||||
{
|
||||
_instance = me->GetInstanceScript();
|
||||
}
|
||||
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
{
|
||||
if (type == POINT_MOTION_TYPE)
|
||||
@@ -255,12 +255,12 @@ class npc_hive_zara_larva : public CreatureScript
|
||||
if (Player* target = ObjectAccessor::GetPlayer(*me, _instance->GetData64(DATA_PARALYZED)))
|
||||
DoCast(target, SPELL_FEED); // Omnomnom
|
||||
}
|
||||
|
||||
|
||||
void MoveInLineOfSight(Unit* who)
|
||||
{
|
||||
if (_instance->GetBossState(DATA_AYAMISS) == IN_PROGRESS)
|
||||
return;
|
||||
|
||||
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
@@ -268,15 +268,15 @@ class npc_hive_zara_larva : public CreatureScript
|
||||
{
|
||||
if (_instance->GetBossState(DATA_AYAMISS) == IN_PROGRESS)
|
||||
return;
|
||||
|
||||
|
||||
ScriptedAI::AttackStart(victim);
|
||||
}
|
||||
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
{
|
||||
if (_instance->GetBossState(DATA_AYAMISS) == IN_PROGRESS)
|
||||
return;
|
||||
|
||||
|
||||
ScriptedAI::UpdateAI(diff);
|
||||
}
|
||||
private:
|
||||
|
||||
@@ -70,11 +70,11 @@ class boss_buru : public CreatureScript
|
||||
boss_buruAI(Creature* creature) : BossAI(creature, DATA_BURU)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void EnterEvadeMode()
|
||||
{
|
||||
BossAI::EnterEvadeMode();
|
||||
|
||||
|
||||
for (std::list<uint64>::iterator i = Eggs.begin(); i != Eggs.end(); ++i)
|
||||
if (Creature* egg = me->GetMap()->GetCreature(*Eggs.begin()))
|
||||
egg->Respawn();
|
||||
@@ -101,7 +101,7 @@ class boss_buru : public CreatureScript
|
||||
if (_phase == PHASE_EGG)
|
||||
me->DealDamage(me, 45000);
|
||||
}
|
||||
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
{
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
@@ -112,12 +112,12 @@ class boss_buru : public CreatureScript
|
||||
{
|
||||
if (_phase != PHASE_EGG)
|
||||
return;
|
||||
|
||||
|
||||
me->RemoveAurasDueToSpell(SPELL_FULL_SPEED);
|
||||
me->RemoveAurasDueToSpell(SPELL_GATHERING_SPEED);
|
||||
events.ScheduleEvent(EVENT_GATHERING_SPEED, 9000);
|
||||
events.ScheduleEvent(EVENT_FULL_SPEED, 60000);
|
||||
|
||||
|
||||
if (Unit* victim = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true))
|
||||
{
|
||||
DoResetThreat();
|
||||
@@ -125,21 +125,21 @@ class boss_buru : public CreatureScript
|
||||
Talk(EMOTE_TARGET, victim->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ManageRespawn(uint64 EggGUID)
|
||||
{
|
||||
ChaseNewVictim();
|
||||
Eggs.push_back(EggGUID);
|
||||
events.ScheduleEvent(EVENT_RESPAWN_EGG, 100000);
|
||||
}
|
||||
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
switch (eventId)
|
||||
@@ -170,7 +170,7 @@ class boss_buru : public CreatureScript
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (me->GetHealthPct() < 20.0f && _phase == PHASE_EGG)
|
||||
{
|
||||
DoCast(me, SPELL_BURU_TRANSFORM); // Enrage
|
||||
@@ -178,7 +178,7 @@ class boss_buru : public CreatureScript
|
||||
me->RemoveAurasDueToSpell(SPELL_THORNS);
|
||||
_phase = PHASE_TRANSFORM;
|
||||
}
|
||||
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
private:
|
||||
@@ -203,14 +203,14 @@ class npc_buru_egg : public CreatureScript
|
||||
{
|
||||
_instance = me->GetInstanceScript();
|
||||
}
|
||||
|
||||
|
||||
void EnterCombat(Unit* attacker)
|
||||
{
|
||||
if (Creature* buru = me->GetMap()->GetCreature(_instance->GetData64(DATA_BURU)))
|
||||
if (!buru->isInCombat())
|
||||
buru->AI()->AttackStart(attacker);
|
||||
}
|
||||
|
||||
|
||||
void JustSummoned(Creature* who)
|
||||
{
|
||||
if (who->GetEntry() == NPC_HATCHLING)
|
||||
@@ -218,7 +218,7 @@ class npc_buru_egg : public CreatureScript
|
||||
if (Unit* target = buru->AI()->SelectTarget(SELECT_TARGET_RANDOM))
|
||||
who->AI()->AttackStart(target);
|
||||
}
|
||||
|
||||
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoCastAOE(SPELL_EXPLODE, true);
|
||||
@@ -247,13 +247,13 @@ class spell_egg_explosion : public SpellScriptLoader
|
||||
class spell_egg_explosion_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_egg_explosion_SpellScript);
|
||||
|
||||
|
||||
void HandleAfterCast()
|
||||
{
|
||||
if (Creature* buru = GetCaster()->FindNearestCreature(NPC_BURU, 5.f))
|
||||
buru->AI()->DoAction(ACTION_EXPLODE);
|
||||
}
|
||||
|
||||
|
||||
void HandleDummyHitTarget(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* target = GetHitUnit())
|
||||
|
||||
@@ -71,7 +71,7 @@ class instance_ruins_of_ahnqiraj : public InstanceMapScript
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void SetData64(uint32 type, uint64 data)
|
||||
{
|
||||
if (type == DATA_PARALYZED)
|
||||
|
||||
@@ -68,7 +68,7 @@ class boss_skeram : public CreatureScript
|
||||
{
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
|
||||
void EnterEvadeMode()
|
||||
{
|
||||
ScriptedAI::EnterEvadeMode();
|
||||
@@ -93,10 +93,10 @@ class boss_skeram : public CreatureScript
|
||||
rand = urand(0, 2);
|
||||
creature->CastSpell(creature, BlinkSpells[rand]);
|
||||
_flag |= (1 << rand);
|
||||
|
||||
|
||||
if (_flag & (1 << 7))
|
||||
_flag = 0;
|
||||
|
||||
|
||||
if (Unit* Target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
creature->AI()->AttackStart(Target);
|
||||
|
||||
@@ -183,12 +183,12 @@ class boss_skeram : public CreatureScript
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
float _hpct;
|
||||
uint8 _flag;
|
||||
};
|
||||
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_skeramAI(creature);
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
enum HunterSpells
|
||||
{
|
||||
SPELL_HUNTER_ASPECT_OF_THE_BEAST_PET = 61669,
|
||||
SPELL_HUNTER_ASPECT_OF_THE_BEAST_PET = 61669,
|
||||
SPELL_HUNTER_BESTIAL_WRATH = 19574,
|
||||
SPELL_HUNTER_CHIMERA_SHOT_SERPENT = 53353,
|
||||
SPELL_HUNTER_CHIMERA_SHOT_VIPER = 53358,
|
||||
|
||||
Reference in New Issue
Block a user