mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-13 11:34:07 -04:00
Core: Continued cleanup
If and for whitespaces.
This commit is contained in:
@@ -934,7 +934,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
return;
|
||||
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
|
||||
{
|
||||
if(!IsUnit((*itr))) continue;
|
||||
if (!IsUnit((*itr)))
|
||||
continue;
|
||||
if (e.action.morphOrMount.creature || e.action.morphOrMount.model)
|
||||
{
|
||||
if (e.action.morphOrMount.creature > 0)
|
||||
@@ -1307,7 +1308,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
|
||||
{
|
||||
if(Creature* npc = (*itr)->ToCreature())
|
||||
if (Creature* npc = (*itr)->ToCreature())
|
||||
{
|
||||
uint32 slot[3];
|
||||
if (e.action.equip.entry)
|
||||
@@ -1930,7 +1931,7 @@ ObjectList* SmartScript::GetTargets(SmartScriptHolder const& e, Unit* invoker /*
|
||||
ObjectList* units = GetWorldObjectsInDist((float)e.target.goRange.maxDist);
|
||||
for (ObjectList::const_iterator itr = units->begin(); itr != units->end(); ++itr)
|
||||
{
|
||||
if(!IsGameObject(*itr))
|
||||
if (!IsGameObject(*itr))
|
||||
continue;
|
||||
|
||||
if (go && go == *itr)
|
||||
@@ -2098,13 +2099,13 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
||||
ProcessAction(e);
|
||||
break;
|
||||
case SMART_EVENT_UPDATE_OOC:
|
||||
if(me && me->isInCombat())
|
||||
if (me && me->isInCombat())
|
||||
return;
|
||||
RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax);
|
||||
ProcessAction(e);
|
||||
break;
|
||||
case SMART_EVENT_UPDATE_IC:
|
||||
if(!me || !me->isInCombat())
|
||||
if (!me || !me->isInCombat())
|
||||
return;
|
||||
RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax);
|
||||
ProcessAction(e);
|
||||
@@ -2734,7 +2735,7 @@ void SmartScript::OnMoveInLineOfSight(Unit* who)
|
||||
{
|
||||
ProcessEventsFor(SMART_EVENT_OOC_LOS, who);
|
||||
|
||||
if(!me) return;
|
||||
if (!me) return;
|
||||
if (me->getVictim())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user