diff options
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index f0c1e460815..1bc95391071 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -4326,17 +4326,9 @@ class spell_item_amalgams_seventh_spine : public AuraScript }); } - void ForcePeriodic(AuraEffect const* /*aurEff*/, bool& isPeriodic, int32& amplitude) + void UpdateSpecAura() { - // simulate heartbeat timer - isPeriodic = true; - amplitude = 5000; - } - - void UpdateSpecAura(AuraEffect const* aurEff) - { - PreventDefaultAction(); - Player* target = GetTarget()->ToPlayer(); + Player* target = GetUnitOwner()->ToPlayer(); if (!target) return; @@ -4345,7 +4337,7 @@ class spell_item_amalgams_seventh_spine : public AuraScript if (target->GetPrimarySpecialization() != spec) target->RemoveAurasDueToSpell(aura); else if (!target->HasAura(aura)) - target->CastSpell(target, aura, aurEff); + target->CastSpell(target, aura, GetEffect(EFFECT_0)); }; switch (target->GetClass()) @@ -4373,8 +4365,7 @@ class spell_item_amalgams_seventh_spine : public AuraScript void Register() override { - DoEffectCalcPeriodic += AuraEffectCalcPeriodicFn(spell_item_amalgams_seventh_spine::ForcePeriodic, EFFECT_0, SPELL_AURA_DUMMY); - OnEffectPeriodic += AuraEffectPeriodicFn(spell_item_amalgams_seventh_spine::UpdateSpecAura, EFFECT_0, SPELL_AURA_DUMMY); + OnHeartbeat += AuraHeartbeatFn(spell_item_amalgams_seventh_spine::UpdateSpecAura); } }; |
