aboutsummaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-17 23:51:08 -0500
committermegamage <none@none>2009-08-17 23:51:08 -0500
commita690f5239cb2c527e456e22eac0bcfd86deeac98 (patch)
treee11a4a7f669b7011eabc496c51bde31c2d78b50b /src/bindings
parent98f58a0f0a6a5cfa8c7453b8124891a8b3fd4cbe (diff)
*Fix the bug that .start always send dk back to start zone.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp
index 55aaf3d0cc8..afc5a48883e 100644
--- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp
+++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp
@@ -386,7 +386,7 @@ struct TRINITY_DLL_DECL npc_death_knight_initiateAI : public SpellAI
pDoneBy->AttackStop();
me->CastSpell(pDoneBy, SPELL_DUEL_VICTORY, true);
lose = true;
- me->CastSpell(me, 7267, true);
+ me->CastSpell(me, SPELL_ID_DUEL_BEG, true);
me->RestoreFaction();
}
}
@@ -416,14 +416,14 @@ struct TRINITY_DLL_DECL npc_death_knight_initiateAI : public SpellAI
{
if (lose)
{
- if (!me->HasAura(7267))
+ if (!me->HasAura(SPELL_ID_DUEL_BEG))
EnterEvadeMode();
return;
}
else if (me->getVictim()->GetTypeId() == TYPEID_PLAYER
&& me->getVictim()->GetHealth() * 10 < me->getVictim()->GetMaxHealth())
{
- me->getVictim()->CastSpell(me->getVictim(), 7267, true); // beg
+ me->getVictim()->CastSpell(me->getVictim(), SPELL_ID_DUEL_BEG, true); // beg
me->getVictim()->RemoveGameObject(SPELL_DUEL_FLAG, true);
EnterEvadeMode();
return;