mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core: Clean up whitespace and tabs
This commit is contained in:
@@ -775,7 +775,7 @@ bool AuctionEntry::LoadFromDB(Field* fields)
|
||||
void AuctionHouseMgr::DeleteExpiredAuctionsAtStartup()
|
||||
{
|
||||
// Deletes expired auctions. Should be called at server start before loading auctions.
|
||||
|
||||
|
||||
// DO NOT USE after auctions are already loaded since this deletes from the DB
|
||||
// and assumes the auctions HAVE NOT been loaded into a list or AuctionEntryMap yet
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
|
||||
uint64 guid = 0;
|
||||
if (Player *player = sObjectMgr->GetPlayer(name.c_str()))
|
||||
guid = player->GetGUID();
|
||||
else
|
||||
else
|
||||
guid = sObjectMgr->GetPlayerGUIDByName(name);
|
||||
// Target must exist
|
||||
if (!guid)
|
||||
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
SkillLineAbilityEntry const *entry = sSkillLineAbilityStore.LookupEntry(i);
|
||||
if (!entry)
|
||||
continue;
|
||||
|
||||
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(entry->spellId);
|
||||
if (!spellInfo)
|
||||
continue;
|
||||
|
||||
@@ -697,13 +697,13 @@ public:
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (target->GetTypeId()==TYPEID_PLAYER)
|
||||
{
|
||||
// check online security
|
||||
if (handler->HasLowerSecurity((Player*)target, 0))
|
||||
return false;
|
||||
|
||||
|
||||
handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink((Player*)target).c_str());
|
||||
if (handler->needReportToTarget((Player*)target))
|
||||
(ChatHandler((Player*)target)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale);
|
||||
|
||||
@@ -64,7 +64,7 @@ class OrientationCheck : public std::unary_function<Unit*, bool>
|
||||
{
|
||||
return !unit->isInFront(caster, 40.0f, 2.5f);
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
Unit* caster;
|
||||
};
|
||||
@@ -80,14 +80,14 @@ class spell_eadric_radiance : public SpellScriptLoader
|
||||
{
|
||||
unitList.remove_if(OrientationCheck(GetCaster()));
|
||||
}
|
||||
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_AREA_ENEMY_SRC);
|
||||
OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_AREA_ENEMY_SRC);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
SpellScript *GetSpellScript() const
|
||||
{
|
||||
return new spell_eadric_radiance_SpellScript();
|
||||
|
||||
@@ -58,7 +58,7 @@ enum InstanceGameObjects
|
||||
|
||||
enum InstanceEvents
|
||||
{
|
||||
EVENT_FOCUSING_IRIS = 20711
|
||||
EVENT_FOCUSING_IRIS = 20711
|
||||
};
|
||||
|
||||
enum InstanceSpells
|
||||
|
||||
@@ -106,7 +106,7 @@ class spell_ulduar_proximity_mines : public SpellScriptLoader
|
||||
OnEffect += SpellEffectFn(spell_ulduar_proximity_minesSpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
return new spell_ulduar_proximity_minesSpellScript();
|
||||
|
||||
Reference in New Issue
Block a user