diff options
author | Shauren <shauren.trinity@gmail.com> | 2013-06-23 14:51:52 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2013-06-23 14:51:52 +0200 |
commit | 3f3a32df3498368be953c3f0fbcfabe6aa6f28f9 (patch) | |
tree | 33425be0cc4338bbae28bc79236ac0237a8d5bb1 /src/server/scripts/Examples | |
parent | 6cbced8e1665415f42de3f46164121fe26bbb984 (diff) | |
parent | 89466f76acd9fc8562f80d5c6df75eac84bfdae2 (diff) |
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r-- | src/server/scripts/Examples/example_creature.cpp | 10 | ||||
-rw-r--r-- | src/server/scripts/Examples/example_escort.cpp | 2 |
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 |