Scripts: Convert DoCast(me->GetVictim(), SPELL_XXXXX); in DoCastVictim(SPELL_XXX);

This commit is contained in:
Vincent-Michael
2013-06-22 16:53:13 +02:00
parent 154dd37743
commit e6185c92fc
209 changed files with 637 additions and 637 deletions

View File

@@ -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;

View File

@@ -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