Core/Script: Code style.

Signed-off-by: Gyx <[email protected]>
This commit is contained in:
Gyx
2012-03-16 20:31:23 +08:00
parent bef1b0c402
commit cd38e7df2b
11 changed files with 59 additions and 48 deletions
@@ -430,7 +430,10 @@ public:
}
}
void SetGlaiveGUID(uint64 guid){ GlaiveGUID = guid; }
void SetGlaiveGUID(uint64 guid)
{
GlaiveGUID = guid;
}
void UpdateAI(const uint32 diff)
{
@@ -663,7 +663,8 @@ public:
me->CombatStart(Shade);
Shade->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_NONE);
Shade->SetTarget(me->GetGUID());
if (player) Shade->AddThreat(player, 1.0f);
if (player)
Shade->AddThreat(player, 1.0f);
DoZoneInCombat(Shade);
EventBegun = true;
}
@@ -676,17 +677,19 @@ public:
switch (id)
{
case 0: ++WayPointId; break;
case 0:
++WayPointId;
break;
case 1:
if (Creature* Shade = Unit::GetCreature(*me, ShadeGUID))
{
me->SetTarget(ShadeGUID);
DoCast(Shade, SPELL_AKAMA_SOUL_RETRIEVE);
EndingTalkCount = 0;
SoulRetrieveTimer = 16000;
}
break;
case 1:
if (Creature* Shade = Unit::GetCreature(*me, ShadeGUID))
{
me->SetTarget(ShadeGUID);
DoCast(Shade, SPELL_AKAMA_SOUL_RETRIEVE);
EndingTalkCount = 0;
SoulRetrieveTimer = 16000;
}
break;
}
}
@@ -879,7 +882,6 @@ public:
DoMeleeAttackIfReady();
}
};
};
void AddSC_boss_shade_of_akama()
@@ -112,9 +112,11 @@ public:
return;
}
void SetTeronGUID(uint64 guid){ TeronGUID = guid; }
void SetTeronGUID(uint64 guid)
{
TeronGUID = guid;
}
};
};
class mob_shadowy_construct : public CreatureScript