Core: Clean up whitespace and tabs in the base sourcetree
This commit is contained in:
@@ -450,7 +450,7 @@ void SmartAI::EnterEvadeMode()
|
||||
return;
|
||||
|
||||
RemoveAuras();
|
||||
|
||||
|
||||
me->DeleteThreatList();
|
||||
me->CombatStop(true);
|
||||
me->LoadCreaturesAddon();
|
||||
@@ -480,15 +480,15 @@ void SmartAI::MoveInLineOfSight(Unit* who)
|
||||
{
|
||||
if (!who)
|
||||
return;
|
||||
|
||||
|
||||
GetScript()->OnMoveInLineOfSight(who);
|
||||
|
||||
|
||||
if (me->HasReactState(REACT_PASSIVE) || AssistPlayerInCombat(who))
|
||||
return;
|
||||
|
||||
if (!CanAIAttack(who))
|
||||
return;
|
||||
|
||||
|
||||
if (!me->canStartAttack(who, false))
|
||||
return;
|
||||
|
||||
@@ -827,7 +827,7 @@ void SmartAI::SetScript9(SmartScriptHolder& e, uint32 entry, Unit* invoker)
|
||||
GetScript()->mLastInvoker = invoker->GetGUID();
|
||||
GetScript()->SetScript9(e, entry);
|
||||
}
|
||||
|
||||
|
||||
void SmartAI::sOnGameEvent(bool start, uint16 eventId)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(start ? SMART_EVENT_GAME_EVENT_START : SMART_EVENT_GAME_EVENT_END, NULL, eventId);
|
||||
|
||||
@@ -195,7 +195,7 @@ class SmartAI : public CreatureAI
|
||||
mDespawnState = t ? 1 : 0;
|
||||
}
|
||||
void StartDespawn() { mDespawnState = 2; }
|
||||
|
||||
|
||||
void RemoveAuras();
|
||||
|
||||
private:
|
||||
|
||||
@@ -88,7 +88,7 @@ void SmartScript::ProcessEventsFor(SMART_EVENT e, Unit* unit, uint32 var0, uint3
|
||||
ConditionList conds = sConditionMgr->GetConditionsForSmartEvent((*i).entryOrGuid, (*i).event_id, (*i).source_type);
|
||||
ConditionSourceInfo info = ConditionSourceInfo(unit, GetBaseObject());
|
||||
meets = sConditionMgr->IsObjectMeetToConditions(info, conds);
|
||||
|
||||
|
||||
if (meets)
|
||||
ProcessEvent(*i, unit, var0, var1, bvar, spell, gob);
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ bool SmartAIMgr::IsTargetValid(SmartScriptHolder const& e)
|
||||
}
|
||||
case SMART_TARGET_GAMEOBJECT_GUID:
|
||||
{
|
||||
if (e.target.goGUID.entry && !IsGameObjectValid(e, e.target.goGUID.entry))
|
||||
if (e.target.goGUID.entry && !IsGameObjectValid(e, e.target.goGUID.entry))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ enum SMART_EVENT
|
||||
SMART_EVENT_IS_BEHIND_TARGET = 67, //1 // cooldownMin, CooldownMax
|
||||
SMART_EVENT_GAME_EVENT_START = 68, //1 // game_event.Entry
|
||||
SMART_EVENT_GAME_EVENT_END = 69, //1 // game_event.Entry
|
||||
SMART_EVENT_GO_STATE_CHANGED = 70, // go state
|
||||
SMART_EVENT_GO_STATE_CHANGED = 70, // go state
|
||||
|
||||
SMART_EVENT_END = 71,
|
||||
};
|
||||
@@ -341,16 +341,16 @@ struct SmartEvent
|
||||
uint32 cooldownMax;
|
||||
} behindTarget;
|
||||
|
||||
struct
|
||||
struct
|
||||
{
|
||||
uint32 gameEventId;
|
||||
} gameEvent;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 state;
|
||||
} goStateChanged;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 param1;
|
||||
@@ -872,7 +872,7 @@ struct SmartAction
|
||||
{
|
||||
uint32 goRespawnTime;
|
||||
} RespawnTarget;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 gossipMenuId;
|
||||
@@ -883,12 +883,12 @@ struct SmartAction
|
||||
{
|
||||
uint32 state;
|
||||
} setGoLootState;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 id;
|
||||
} sendTargetToTarget;
|
||||
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 param1;
|
||||
|
||||
Reference in New Issue
Block a user