converted all tabs to 4 spaces

This commit is contained in:
Yehonal
2016-06-26 19:23:57 +02:00
parent 52f305111c
commit f6eefedcd5
717 changed files with 132388 additions and 132388 deletions

View File

@@ -34,11 +34,11 @@ bool OutdoorPvPGH::SetupOutdoorPvP()
{
RegisterZone(GH_ZONE);
if (m_obj = new OPvPCapturePointGH(this))
{
AddCapturePoint(m_obj);
return true;
}
return false;
{
AddCapturePoint(m_obj);
return true;
}
return false;
}
void OutdoorPvPGH::SendRemoveWorldStates(Player* player)
@@ -95,15 +95,15 @@ void OPvPCapturePointGH::ChangeState()
switch (m_State)
{
case OBJECTIVESTATE_ALLIANCE:
sGameEventMgr->StopEvent(GH_ALLIANCE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_HORDE_DEFENSE_EVENT);
sGameEventMgr->StartEvent(GH_ALLIANCE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_ALLIANCE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_HORDE_DEFENSE_EVENT);
sGameEventMgr->StartEvent(GH_ALLIANCE_DEFENSE_EVENT);
artkit = 2;
break;
case OBJECTIVESTATE_HORDE:
sGameEventMgr->StopEvent(GH_ALLIANCE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_HORDE_DEFENSE_EVENT);
sGameEventMgr->StartEvent(GH_HORDE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_ALLIANCE_DEFENSE_EVENT);
sGameEventMgr->StopEvent(GH_HORDE_DEFENSE_EVENT);
sGameEventMgr->StartEvent(GH_HORDE_DEFENSE_EVENT);
artkit = 1;
break;
}

View File

@@ -22,14 +22,14 @@
enum OutdoorPvPGHenum
{
GH_ALLIANCE_DEFENSE_EVENT = 65,
GH_HORDE_DEFENSE_EVENT = 66,
GH_ALLIANCE_DEFENSE_EVENT = 65,
GH_HORDE_DEFENSE_EVENT = 66,
GH_ZONE = 394,
GH_ZONE = 394,
GH_UI_SLIDER_DISPLAY = 3466,
GH_UI_SLIDER_POS = 3467,
GH_UI_SLIDER_N = 3468,
GH_UI_SLIDER_DISPLAY = 3466,
GH_UI_SLIDER_POS = 3467,
GH_UI_SLIDER_N = 3468,
};
class Unit;

View File

@@ -35,7 +35,7 @@ void OutdoorPvPNA::HandleKillImpl(Player* player, Unit* killed)
if (killed->GetTypeId() == TYPEID_PLAYER && player->GetTeamId() != killed->ToPlayer()->GetTeamId())
{
player->KilledMonsterCredit(NA_CREDIT_MARKER, 0); // 0 guid, btw it isn't even used in killedmonster function :S
player->CastSpell(player, player->GetTeamId() == TEAM_ALLIANCE ? NA_KILL_TOKEN_ALLIANCE : NA_KILL_TOKEN_HORDE, true);
player->CastSpell(player, player->GetTeamId() == TEAM_ALLIANCE ? NA_KILL_TOKEN_ALLIANCE : NA_KILL_TOKEN_HORDE, true);
}
}

View File

@@ -105,8 +105,8 @@ bool OutdoorPvPSI::HandleAreaTrigger(Player* player, uint32 trigger)
}
UpdateWorldState();
// reward player, xinef: has no effect on characters above level 70
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
// add 19 honor
player->RewardHonor(NULL, 1, 19);
// add 20 cenarion circle repu
@@ -131,8 +131,8 @@ bool OutdoorPvPSI::HandleAreaTrigger(Player* player, uint32 trigger)
}
UpdateWorldState();
// reward player, xinef: has no effect on characters above level 70
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
// add 19 honor
player->RewardHonor(NULL, 1, 19);
// add 20 cenarion circle repu