summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrath <wmatty_96@live.it>2016-09-05 20:27:02 +0200
committerKrath <wmatty_96@live.it>2016-09-05 20:27:02 +0200
commite1884fd3c4c40944d118f885257282772ec50e2b (patch)
treed9f4534c874dff6b65a00232161fb954c9607dc5 /src
parentc0590a5cfc2e3a9eff45e893f8e07a678d3aeecc (diff)
Checking if the player is mounted.
Diffstat (limited to 'src')
-rw-r--r--src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp
index ec96dc603a..90e861ca2f 100644
--- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp
+++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp
@@ -31,10 +31,20 @@ public:
switch( pInstance->GetData(DATA_INSTANCE_PROGRESS) )
{
case INSTANCE_PROGRESS_INITIAL:
- gossipTextId = 14688;
- pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT1a, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1338);
- pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT1b, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1341);
- break;
+ if(!pPlayer->GetVehicle() )
+ {
+ if (pInstance->GetData(DATA_TEAMID_IN_INSTANCE) == TEAM_HORDE)
+ gossipTextId = 15043; //Horde text
+ else
+ gossipTextId = 14757; //Alliance text
+ }
+ else
+ {
+ gossipTextId = 14688;
+ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT1a, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1338);
+ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT1b, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1341);
+ }
+ break;
case INSTANCE_PROGRESS_CHAMPIONS_DEAD:
gossipTextId = 14737;
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1339);