Spell: Move Crystal Spike aura to the cpp

(cherry picked from commit 26faca51cd)
This commit is contained in:
Killyana
2019-12-19 22:27:31 +01:00
committed by Shauren
parent a8cbaa33ac
commit ff30b0751e
2 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `creature_template_addon` SET `auras`="" WHERE `entry` IN (27101,27079);

View File

@@ -183,6 +183,7 @@ enum CrystalSpikes
MAX_COUNT = 5,
SPELL_CRYSTAL_SPIKE_DAMAGE = 47944,
SPELL_CRYSTAL_SPIKE_AURA = 47941,
GO_CRYSTAL_SPIKE_TRAP = 188537,
};
@@ -212,10 +213,12 @@ public:
switch (me->GetEntry())
{
case NPC_CRYSTAL_SPIKE_INITIAL:
_count = 0;
me->SetFacingToObject(owner);
break;
_count = 0;
me->SetFacingToObject(owner);
me->CastSpell(me, SPELL_CRYSTAL_SPIKE_AURA, true);
break;
case NPC_CRYSTAL_SPIKE_TRIGGER:
me->CastSpell(me, SPELL_CRYSTAL_SPIKE_AURA, true);
if (Creature* trigger = owner->ToCreature())
_count = trigger->AI()->GetData(DATA_COUNT) + 1;
break;