mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-18 05:49:41 -04:00
Core: Continued cleanup
If and for whitespaces.
This commit is contained in:
@@ -232,13 +232,13 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
|
||||
case GAMEOBJECT_TYPE_TRAP:
|
||||
if (GetGOInfo()->trap.stealthed)
|
||||
{
|
||||
m_stealth.AddFlag( STEALTH_TRAP);
|
||||
m_stealth.AddFlag(STEALTH_TRAP);
|
||||
m_stealth.AddValue(STEALTH_TRAP, 300);
|
||||
}
|
||||
|
||||
if (GetGOInfo()->trap.invisible)
|
||||
{
|
||||
m_invisibility.AddFlag( INVISIBILITY_TRAP);
|
||||
m_invisibility.AddFlag(INVISIBILITY_TRAP);
|
||||
m_invisibility.AddValue(INVISIBILITY_TRAP, 70);
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
|
||||
|
||||
void GameObject::Update(uint32 diff)
|
||||
{
|
||||
if(!AI())
|
||||
if (!AI())
|
||||
{
|
||||
if (!AIM_Initialize())
|
||||
sLog->outError("Could not initialize GameObjectAI");
|
||||
@@ -1523,10 +1523,10 @@ void GameObject::Use(Unit* user)
|
||||
if (player->CanUseBattlegroundObject())
|
||||
{
|
||||
// in battleground check
|
||||
Battleground *bg = player->GetBattleground();
|
||||
Battleground* bg = player->GetBattleground();
|
||||
if (!bg)
|
||||
return;
|
||||
if( player->GetVehicle())
|
||||
if (player->GetVehicle())
|
||||
return;
|
||||
// BG flag dropped
|
||||
// WS:
|
||||
@@ -1589,7 +1589,7 @@ void GameObject::Use(Unit* user)
|
||||
if (!spellId)
|
||||
return;
|
||||
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId);
|
||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId);
|
||||
if (!spellInfo)
|
||||
{
|
||||
if (user->GetTypeId() != TYPEID_PLAYER || !sOutdoorPvPMgr->HandleCustomSpell(user->ToPlayer(), spellId, this))
|
||||
|
||||
Reference in New Issue
Block a user