aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-08-12 02:07:52 +0200
committerKudlaty <none@none>2009-08-12 02:07:52 +0200
commit6eeaea276c05ed95db59921e935d9d90c46ed5c6 (patch)
tree162206871e0916c35ac00f430fa371cb81e797d6 /src
parent978242da3f5deb4ee4bc0e6e3124bf2c66c405d1 (diff)
Fix quest Death Challange
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
index 898041f0194..ad7fae65a67 100644
--- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
+++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
@@ -821,7 +821,10 @@ int32 m_auiRandomSay[] =
struct TRINITY_DLL_DECL npc_death_knight_initiateAI : public ScriptedAI
{
- npc_death_knight_initiateAI(Creature* pCreature) : ScriptedAI(pCreature) { }
+ npc_death_knight_initiateAI(Creature* pCreature) : ScriptedAI(pCreature)
+ {
+ m_bIsDuelInProgress = false;
+ }
uint64 m_uiDuelerGUID;
uint32 m_uiDuelTimer;
@@ -918,7 +921,7 @@ bool GossipSelect_npc_death_knight_initiate(Player* pPlayer, Creature* pCreature
{
pPlayer->CLOSE_GOSSIP_MENU();
- if (((npc_death_knight_initiateAI*)pCreature)->m_bIsDuelInProgress)
+ if (CAST_AI(npc_death_knight_initiateAI, pCreature->AI())->m_bIsDuelInProgress)
return true;
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_15);