Skip to content

Instantly share code, notes, and snippets.

@Jeidai
Created January 9, 2012 10:00
Show Gist options
  • Save Jeidai/1582272 to your computer and use it in GitHub Desktop.
Save Jeidai/1582272 to your computer and use it in GitHub Desktop.
fix quest
diff --git a/src/server/scripts/Northrend/argenttournament.cpp b/src/server/scripts/Northrend/argenttournament.cpp
index d2ac8f9..667d5db 100644
--- a/src/server/scripts/Northrend/argenttournament.cpp
+++ b/src/server/scripts/Northrend/argenttournament.cpp
@@ -1436,7 +1436,7 @@ public:
pCreature->setFaction(14);
pCreature->SetReactState(REACT_AGGRESSIVE);
pCreature->MonsterSay(urand(0,1) ? SAY_START_1 : SAY_START_2, LANG_UNIVERSAL, 0);
- pCreature->AI()->AttackStart(pPlayer);
+ pCreature->AI()->AttackStart(pPlayer->GetVehicleCreatureBase());
pCreature->AddThreat(pPlayer, 0.0f);
pCreature->SetInCombatWith(pPlayer);
pPlayer->SetInCombatWith(pCreature);
@@ -1822,7 +1822,7 @@ public:
pCreature->setFaction(14);
pCreature->SetReactState(REACT_AGGRESSIVE);
pCreature->MonsterSay(urand(0,1) ? SAY_START_1_GRAND : SAY_START_2_GRAND, LANG_UNIVERSAL, 0);
- pCreature->AI()->AttackStart(pPlayer);
+ pCreature->AI()->AttackStart(pPlayer->GetVehicleCreatureBase());
pCreature->AddThreat(pPlayer, 0.0f);
pCreature->SetInCombatWith(pPlayer);
pPlayer->SetInCombatWith(pCreature);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment