Code style (game + scripts only):
"if(" --> "if ("
--HG--
branch : trunk
This commit is contained in:
@@ -505,28 +505,28 @@ bool GOHello_go_matrix_punchograph(Player *pPlayer, GameObject *pGO)
|
||||
switch(pGO->GetEntry())
|
||||
{
|
||||
case MATRIX_PUNCHOGRAPH_3005_A:
|
||||
if(pPlayer->HasItemCount(ITEM_WHITE_PUNCH_CARD, 1))
|
||||
if (pPlayer->HasItemCount(ITEM_WHITE_PUNCH_CARD, 1))
|
||||
{
|
||||
pPlayer->DestroyItemCount(ITEM_WHITE_PUNCH_CARD, 1, true);
|
||||
pPlayer->CastSpell(pPlayer,SPELL_YELLOW_PUNCH_CARD,true);
|
||||
}
|
||||
break;
|
||||
case MATRIX_PUNCHOGRAPH_3005_B:
|
||||
if(pPlayer->HasItemCount(ITEM_YELLOW_PUNCH_CARD, 1))
|
||||
if (pPlayer->HasItemCount(ITEM_YELLOW_PUNCH_CARD, 1))
|
||||
{
|
||||
pPlayer->DestroyItemCount(ITEM_YELLOW_PUNCH_CARD, 1, true);
|
||||
pPlayer->CastSpell(pPlayer,SPELL_BLUE_PUNCH_CARD,true);
|
||||
}
|
||||
break;
|
||||
case MATRIX_PUNCHOGRAPH_3005_C:
|
||||
if(pPlayer->HasItemCount(ITEM_BLUE_PUNCH_CARD, 1))
|
||||
if (pPlayer->HasItemCount(ITEM_BLUE_PUNCH_CARD, 1))
|
||||
{
|
||||
pPlayer->DestroyItemCount(ITEM_BLUE_PUNCH_CARD, 1, true);
|
||||
pPlayer->CastSpell(pPlayer,SPELL_RED_PUNCH_CARD,true);
|
||||
}
|
||||
break;
|
||||
case MATRIX_PUNCHOGRAPH_3005_D:
|
||||
if(pPlayer->HasItemCount(ITEM_RED_PUNCH_CARD, 1))
|
||||
if (pPlayer->HasItemCount(ITEM_RED_PUNCH_CARD, 1))
|
||||
{
|
||||
pPlayer->DestroyItemCount(ITEM_RED_PUNCH_CARD, 1, true);
|
||||
pPlayer->CastSpell(pPlayer, SPELL_PRISMATIC_PUNCH_CARD, true);
|
||||
@@ -549,7 +549,7 @@ enum eRustyCage
|
||||
|
||||
bool GOHello_go_rusty_cage(Player *pPlayer, GameObject *pGO)
|
||||
{
|
||||
if(Creature *pGoblinPrisoner = pGO->FindNearestCreature(NPC_GOBLIN_PRISIONER, 5.0f, true))
|
||||
if (Creature *pGoblinPrisoner = pGO->FindNearestCreature(NPC_GOBLIN_PRISIONER, 5.0f, true))
|
||||
{
|
||||
pGO->SetGoState(GO_STATE_ACTIVE);
|
||||
pPlayer->KilledMonsterCredit(NPC_GOBLIN_PRISIONER, pGoblinPrisoner->GetGUID());
|
||||
|
||||
@@ -1250,7 +1250,7 @@ bool GossipSelect_npc_rogue_trainer(Player* pPlayer, Creature* pCreature, uint32
|
||||
pPlayer->SendTalentWipeConfirm(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_OPTION_LEARNDUALSPEC:
|
||||
if(pPlayer->GetSpecsCount() == 1 && !(pPlayer->getLevel() < sWorld.getConfig(CONFIG_MIN_DUALSPEC_LEVEL)))
|
||||
if (pPlayer->GetSpecsCount() == 1 && !(pPlayer->getLevel() < sWorld.getConfig(CONFIG_MIN_DUALSPEC_LEVEL)))
|
||||
{
|
||||
if (pPlayer->GetMoney() < 10000000)
|
||||
{
|
||||
@@ -1805,7 +1805,7 @@ struct npc_ebon_gargoyleAI : CasterAI
|
||||
Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(m_creature, targets, u_check);
|
||||
m_creature->VisitNearbyObject(30, searcher);
|
||||
for (std::list<Unit*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter)
|
||||
if((*iter)->GetAura(49206,owner->GetGUID()))
|
||||
if ((*iter)->GetAura(49206,owner->GetGUID()))
|
||||
{
|
||||
me->Attack((*iter),false);
|
||||
break;
|
||||
@@ -1822,7 +1822,7 @@ struct npc_ebon_gargoyleAI : CasterAI
|
||||
// Fly away when dismissed
|
||||
void SpellHit(Unit *source, const SpellEntry *spell)
|
||||
{
|
||||
if(spell->Id != 50515 || !me->isAlive() )
|
||||
if (spell->Id != 50515 || !me->isAlive() )
|
||||
return;
|
||||
|
||||
Unit *owner = me->GetOwner();
|
||||
|
||||
Reference in New Issue
Block a user