[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
This commit is contained in:
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* /*player*/, GameObject* pGo)
|
||||
{
|
||||
InstanceScript *pInstance = pGo->GetInstanceScript();
|
||||
InstanceScript* pInstance = pGo->GetInstanceScript();
|
||||
|
||||
if (pInstance)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
uint32 uiPoisonCloudTimer;
|
||||
bool bIsEnraged;
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
uint32 uiNetTimer;
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
uint32 uiMindBlastTimer;
|
||||
uint32 uiSleepTimer;
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
||||
@@ -172,8 +172,8 @@ public:
|
||||
//cast dummy, useful for bos addons
|
||||
me->CastCustomSpell(me, SPELL_MARK, NULL, NULL, NULL, false, NULL, NULL, me->GetGUID());
|
||||
|
||||
std::list<HostileReference *> t_list = me->getThreatManager().getThreatList();
|
||||
for (std::list<HostileReference *>::const_iterator itr = t_list.begin(); itr!= t_list.end(); ++itr)
|
||||
std::list<HostileReference*> t_list = me->getThreatManager().getThreatList();
|
||||
for (std::list<HostileReference*>::const_iterator itr = t_list.begin(); itr!= t_list.end(); ++itr)
|
||||
{
|
||||
Unit* target = Unit::GetUnit(*me, (*itr)->getUnitGuid());
|
||||
if (target && target->GetTypeId() == TYPEID_PLAYER && target->getPowerType() == POWER_MANA)
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 SandBreath_Timer;
|
||||
uint32 TimeStop_Timer;
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 ArcaneBlast_Timer;
|
||||
uint32 TimeLapse_Timer;
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Haste_Timer;
|
||||
uint32 SpellReflection_Timer;
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 SpellCorrupt_Timer;
|
||||
uint32 Check_Timer;
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 TimeRiftWave_Timer;
|
||||
uint8 mRiftWaveCount;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Holy_Light_Timer;
|
||||
uint32 Cleanse_Timer;
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 SandBreath_Timer;
|
||||
uint32 ImpendingDeath_Timer;
|
||||
|
||||
@@ -289,7 +289,7 @@ public:
|
||||
me->setActive(true);
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint64 TarethaGUID;
|
||||
|
||||
@@ -629,7 +629,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Cleave_Timer;
|
||||
uint32 ToxicVolley_Timer;
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Charge_Timer;
|
||||
uint32 KnockBack_Timer;
|
||||
@@ -244,7 +244,7 @@ public:
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Heal_Timer;
|
||||
uint32 Fear_Timer;
|
||||
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
{
|
||||
if (Player* target = CAST_PLR(SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)))
|
||||
{
|
||||
if (Group *pGrp = target->GetGroup())
|
||||
if (Group* pGrp = target->GetGroup())
|
||||
for (uint8 ico = 0; ico < TARGETICONCOUNT; ++ico)
|
||||
{
|
||||
//if (grp->m_targetIcons[ico] == me->GetGUID()) -- private member :(
|
||||
|
||||
@@ -66,7 +66,7 @@ struct boss_twinemperorsAI : public ScriptedAI
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
uint32 Heal_Timer;
|
||||
uint32 Teleport_Timer;
|
||||
@@ -147,7 +147,7 @@ struct boss_twinemperorsAI : public ScriptedAI
|
||||
{
|
||||
// TODO: we should activate the other boss location so he can start attackning even if nobody
|
||||
// is near I dont know how to do that
|
||||
ScriptedAI *otherAI = CAST_AI(ScriptedAI, pOtherBoss->AI());
|
||||
ScriptedAI* otherAI = CAST_AI(ScriptedAI, pOtherBoss->AI());
|
||||
if (!pOtherBoss->isInCombat())
|
||||
{
|
||||
DoPlaySoundToSet(me, IAmVeklor() ? SOUND_VL_AGGRO : SOUND_VN_AGGRO);
|
||||
@@ -157,7 +157,7 @@ struct boss_twinemperorsAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo *entry)
|
||||
void SpellHit(Unit* caster, const SpellInfo* entry)
|
||||
{
|
||||
if (caster == me)
|
||||
return;
|
||||
@@ -221,7 +221,7 @@ struct boss_twinemperorsAI : public ScriptedAI
|
||||
float other_z = pOtherBoss->GetPositionZ();
|
||||
float other_o = pOtherBoss->GetOrientation();
|
||||
|
||||
Map *thismap = me->GetMap();
|
||||
Map* thismap = me->GetMap();
|
||||
thismap->CreatureRelocation(pOtherBoss, me->GetPositionX(),
|
||||
me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
|
||||
thismap->CreatureRelocation(me, other_x, other_y, other_z, other_o);
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
|
||||
void GiveBuddyMyList(Creature* c)
|
||||
{
|
||||
aqsentinelAI *cai = CAST_AI(aqsentinelAI, (c)->AI());
|
||||
aqsentinelAI* cai = CAST_AI(aqsentinelAI, (c)->AI());
|
||||
for (int i=0; i<3; ++i)
|
||||
if (NearbyGUID[i] && NearbyGUID[i] != c->GetGUID())
|
||||
cai->AddBuddyToList(NearbyGUID[i]);
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
InstanceScript *pInstance = creature->GetInstanceScript();
|
||||
InstanceScript* pInstance = creature->GetInstanceScript();
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
{
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
InstanceScript *pInstance = creature->GetInstanceScript();
|
||||
InstanceScript* pInstance = creature->GetInstanceScript();
|
||||
|
||||
if (pInstance)
|
||||
{
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
uint32 eventTimer;
|
||||
uint32 currentEvent;
|
||||
uint32 eventProgress;
|
||||
InstanceScript *pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
@@ -315,7 +315,7 @@ public:
|
||||
eventTimer = 3000;
|
||||
if (Creature* naralex = pInstance->instance->GetCreature(pInstance->GetData64(DATA_NARALEX)))
|
||||
{
|
||||
AchievementEntry const *AchievWC = GetAchievementStore()->LookupEntry(ACHIEVEMENT_WAILING_CAVERNS);
|
||||
AchievementEntry const* AchievWC = GetAchievementStore()->LookupEntry(ACHIEVEMENT_WAILING_CAVERNS);
|
||||
if (AchievWC)
|
||||
{
|
||||
Map* pMap = me->GetMap();
|
||||
|
||||
@@ -443,7 +443,7 @@ class at_zumrah : public AreaTriggerScript
|
||||
public:
|
||||
at_zumrah() : AreaTriggerScript("at_zumrah") { }
|
||||
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry * /*at*/)
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/)
|
||||
{
|
||||
Creature* pZumrah = player->FindNearestCreature(ZUMRAH_ID, 30.0f);
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
void EnterCombat(Unit* /*who*/) { }
|
||||
|
||||
void SpellHit(Unit* Hitter, const SpellInfo *Spellkind)
|
||||
void SpellHit(Unit* Hitter, const SpellInfo* Spellkind)
|
||||
{
|
||||
if (!spellhit &&
|
||||
Hitter->GetTypeId() == TYPEID_PLAYER &&
|
||||
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* Caster, const SpellInfo *Spell)
|
||||
void SpellHit(Unit* Caster, const SpellInfo* Spell)
|
||||
{
|
||||
if (Spell->SpellFamilyFlags[2] & 0x080000000)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
work = true;
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo * spell)
|
||||
void SpellHit(Unit* caster, const SpellInfo* spell)
|
||||
{
|
||||
if (spell->Id == SPELL_AWAKEN_PEON && caster->GetTypeId() == TYPEID_PLAYER
|
||||
&& CAST_PLR(caster)->GetQuestStatus(QUEST_LAZY_PEONS) == QUEST_STATUS_INCOMPLETE)
|
||||
|
||||
@@ -273,7 +273,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI *GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_theramore_guardAI(creature);
|
||||
}
|
||||
@@ -588,7 +588,7 @@ public:
|
||||
return new npc_stinkyAI(creature);
|
||||
}
|
||||
|
||||
bool OnQuestAccept(Player* player, Creature* creature, Quest const *quest)
|
||||
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId() == QUEST_STINKYS_ESCAPE_H || QUEST_STINKYS_ESCAPE_A)
|
||||
{
|
||||
|
||||
@@ -559,7 +559,7 @@ class npc_clintar_dreamwalker : public CreatureScript
|
||||
public:
|
||||
npc_clintar_dreamwalker() : CreatureScript("npc_clintar_dreamwalker") { }
|
||||
|
||||
bool OnQuestAccept(Player* player, Creature* creature, Quest const *quest)
|
||||
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId() == 10965)
|
||||
{
|
||||
|
||||
@@ -1003,7 +1003,7 @@ public:
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
if (Group *EventGroup = player->GetGroup())
|
||||
if (Group* EventGroup = player->GetGroup())
|
||||
{
|
||||
Player* GroupMember;
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ class npc_steward_of_time : public CreatureScript
|
||||
public:
|
||||
npc_steward_of_time() : CreatureScript("npc_steward_of_time") { }
|
||||
|
||||
bool OnQuestAccept(Player* player, Creature* /*creature*/, Quest const *quest)
|
||||
bool OnQuestAccept(Player* player, Creature* /*creature*/, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId() == 10279) //Quest: To The Master's Lair
|
||||
player->CastSpell(player, 34891, true); //(Flight through Caverns)
|
||||
|
||||
@@ -265,7 +265,7 @@ public:
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_SALUTE);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo *spell)
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
|
||||
{
|
||||
if (spell->Id == SPELL_FLARE || spell->Id == SPELL_FOLLY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user