aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r--src/server/scripts/Examples/example_creature.cpp10
-rw-r--r--src/server/scripts/Examples/example_escort.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/server/scripts/Examples/example_creature.cpp b/src/server/scripts/Examples/example_creature.cpp
index 6a6c348bfcf..78c66750c5c 100644
--- a/src/server/scripts/Examples/example_creature.cpp
+++ b/src/server/scripts/Examples/example_creature.cpp
@@ -200,9 +200,9 @@ class example_creature : public CreatureScript
{
//Cast spell one on our current target.
if (rand()%50 > 10)
- DoCast(me->GetVictim(), SPELL_ONE_ALT);
+ DoCastVictim(SPELL_ONE_ALT);
else if (me->IsWithinDist(me->GetVictim(), 25.0f))
- DoCast(me->GetVictim(), SPELL_ONE);
+ DoCastVictim(SPELL_ONE);
m_uiSpell1Timer = 5000;
}
@@ -213,7 +213,7 @@ class example_creature : public CreatureScript
if (m_uiSpell2Timer <= uiDiff)
{
//Cast spell two on our current target.
- DoCast(me->GetVictim(), SPELL_TWO);
+ DoCastVictim(SPELL_TWO);
m_uiSpell2Timer = 37000;
}
else
@@ -226,7 +226,7 @@ class example_creature : public CreatureScript
if (m_uiSpell3Timer <= uiDiff)
{
//Cast spell one on our current target.
- DoCast(me->GetVictim(), SPELL_THREE);
+ DoCastVictim(SPELL_THREE);
m_uiSpell3Timer = 19000;
}
@@ -237,7 +237,7 @@ class example_creature : public CreatureScript
{
//Say our line then cast uber death spell
Talk(SAY_BERSERK, me->GetVictim() ? me->GetVictim()->GetGUID() : 0);
- DoCast(me->GetVictim(), SPELL_BERSERK);
+ DoCastVictim(SPELL_BERSERK);
//Cast our beserk spell agian in 12 seconds if we didn't kill everyone
m_uiBeserkTimer = 12000;
diff --git a/src/server/scripts/Examples/example_escort.cpp b/src/server/scripts/Examples/example_escort.cpp
index bf3daa1443f..f4cb5c24e18 100644
--- a/src/server/scripts/Examples/example_escort.cpp
+++ b/src/server/scripts/Examples/example_escort.cpp
@@ -147,7 +147,7 @@ class example_escort : public CreatureScript
if (m_uiDeathCoilTimer <= uiDiff)
{
Talk(SAY_SPELL);
- DoCast(me->GetVictim(), SPELL_DEATH_COIL, false);
+ DoCastVictim(SPELL_DEATH_COIL, false);
m_uiDeathCoilTimer = 4000;
}
else