Core/Spells: ported CastSpell unclusterfucking from 3.3.5 branch
This commit is contained in:
1 parent
7e637971ee
commit
754c138f89
157 files changed
+1195
-1223
No files matched your search
@@ -18,6 +18,7 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "SpellMgr.h"
|
||||
|
||||
class trigger_periodic : public CreatureScript
|
||||
@@ -42,7 +43,7 @@ public:
|
||||
if (timer <= diff)
|
||||
{
|
||||
if (spell)
|
||||
me->CastSpell(me, spell, true);
|
||||
me->CastSpell(me, spell->Id, true);
|
||||
timer = interval;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -2270,7 +2270,7 @@ public:
|
||||
}
|
||||
else
|
||||
//me->CastSpell(me, GetFireworkSpell(me->GetEntry()), true);
|
||||
me->CastSpell(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), GetFireworkSpell(me->GetEntry()), true);
|
||||
me->CastSpell({ me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() }, GetFireworkSpell(me->GetEntry()), true);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2973,7 +2973,7 @@ class npc_mage_orb : public CreatureScript
|
||||
{
|
||||
Position explPos = me->GetPosition();
|
||||
float z = explPos.GetPositionZ() - me->GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
|
||||
summoner->CastSpell(explPos.GetPositionX(), explPos.GetPositionY(), z, SPELL_FIRE_POWER_EXPLOSION, true);
|
||||
summoner->CastSpell({ explPos.GetPositionX(), explPos.GetPositionY(), z }, SPELL_FIRE_POWER_EXPLOSION, true);
|
||||
me->DespawnOrUnsummon();
|
||||
}
|
||||
break;
|
||||
@@ -2984,7 +2984,7 @@ class npc_mage_orb : public CreatureScript
|
||||
{
|
||||
Position explPos = me->GetPosition();
|
||||
float z = explPos.GetPositionZ() - me->GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
|
||||
summoner->CastSpell(explPos.GetPositionX(), explPos.GetPositionY(), z, SPELL_FIRE_POWER_EXPLOSION, true);
|
||||
summoner->CastSpell({ explPos.GetPositionX(), explPos.GetPositionY(), z }, SPELL_FIRE_POWER_EXPLOSION, true);
|
||||
me->DespawnOrUnsummon();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user