mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Scripts: Convert DoCast(me->GetVictim(), SPELL_XXXXX); in DoCastVictim(SPELL_XXX);
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user