mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core: Remove again whitespace (meh :/)
This commit is contained in:
@@ -239,7 +239,7 @@ public:
|
||||
ticket->SetCompleted();
|
||||
ticket->SaveToDB(trans);
|
||||
|
||||
std::string msg = ticket->FormatMessageString(*handler, NULL, NULL,
|
||||
std::string msg = ticket->FormatMessageString(*handler, NULL, NULL,
|
||||
NULL, NULL, handler->GetSession() ? handler->GetSession()->GetPlayer()->GetName().c_str() : "Console");
|
||||
handler->SendGlobalGMSysMessage(msg.c_str());
|
||||
sTicketMgr->UpdateLastChange();
|
||||
|
||||
@@ -412,7 +412,7 @@ class npc_eye_of_acherus : public CreatureScript
|
||||
{
|
||||
if (movementType == WAYPOINT_MOTION_TYPE && pointId == POINT_EYE_MOVE_END - 1)
|
||||
{
|
||||
me->SetByteValue(UNIT_FIELD_BYTES_2, 0, SHEATH_STATE_MELEE);
|
||||
me->SetByteValue(UNIT_FIELD_BYTES_2, 0, SHEATH_STATE_MELEE);
|
||||
me->RemoveAllAuras();
|
||||
|
||||
if (Player* owner = me->GetCharmerOrOwner()->ToPlayer())
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
EventMap events;
|
||||
SummonList Summons;
|
||||
|
||||
@@ -151,18 +151,17 @@ class spell_kormok_summon_bone_mages : SpellScriptLoader
|
||||
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
for (int i = 0; i < 4; ++i)
|
||||
for (uint32 i = 0; i < 4; ++i)
|
||||
if (!sSpellMgr->GetSpellInfo(SummonMageSpells[i]))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
{
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
for (int i = 0; i < 2; ++i)
|
||||
GetCaster()->CastSpell(GetCaster(), SummonMageSpells[urand(0, 4)], true);
|
||||
for (uint32 i = 0; i < 2; ++i)
|
||||
GetCaster()->CastSpell(GetCaster(), SummonMageSpells[urand(0, 4)], true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -199,7 +198,7 @@ class spell_kormok_summon_bone_minions : SpellScriptLoader
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
|
||||
// Possible spells to handle this not found.
|
||||
for (int i = 0; i < 4; ++i)
|
||||
for (uint32 i = 0; i < 4; ++i)
|
||||
GetCaster()->SummonCreature(NPC_BONE_MINION, GetCaster()->GetPositionX() + float(irand(-7, 7)), GetCaster()->GetPositionY() + float(irand(-7, 7)), GetCaster()->GetPositionZ(), 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,8 @@ public:
|
||||
DoCast(me, SPELL_ICE_ARMOR);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
events.ScheduleEvent(EVENT_ICE_ARMOR, 2000);
|
||||
events.ScheduleEvent(EVENT_FROSTBOLT, 8000);
|
||||
events.ScheduleEvent(EVENT_CHILL_NOVA, 12000);
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
EventMap events;
|
||||
};
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
EventMap events;
|
||||
};
|
||||
|
||||
@@ -204,7 +204,7 @@ public:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
++BeamCount;
|
||||
uint32 Beam = CurrentBeam;
|
||||
if (BeamCount > 3)
|
||||
@@ -265,7 +265,7 @@ public:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
uint64 TargetGUID[3];
|
||||
uint32 BeamCount;
|
||||
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
uint64 SpineTargetGUID;
|
||||
};
|
||||
|
||||
@@ -587,7 +587,7 @@ class boss_taerar : public CreatureScript
|
||||
void Reset() override
|
||||
{
|
||||
me->RemoveAurasDueToSpell(SPELL_SHADE);
|
||||
|
||||
|
||||
Initialize();
|
||||
|
||||
emerald_dragonAI::Reset();
|
||||
|
||||
Reference in New Issue
Block a user