From c9290eac285683b7a7a471271d4783123ca0b8ea Mon Sep 17 00:00:00 2001 From: QAston Date: Sat, 18 Apr 2009 17:32:04 +0200 Subject: *Allow imp to learn Phase Shift *Correct bonus damage for Unstable Affliction *Correct some procflags. --HG-- branch : trunk rename : sql/updates/2685_world_spell_proc_event.sql => sql/updates/2774_world_spell_proc_event.sql --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/SpellEffects.cpp') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index d321d2d6e31..c08e1bea198 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4937,7 +4937,7 @@ void Spell::EffectScriptEffect(uint32 effIndex) // Viper Sting - Instantly restores mana to you equal to 60% of the total amount drained by your Viper Sting. if (familyFlag[1] & 0x00000080) { - int32 tickCount = (aura->GetAuraMaxDuration() - aura->GetAuraDuration()) / aura->GetPartAura(0)->GetAuraAmplitude(); + int32 tickCount = aura->GetPartAura(0)->GetTickNumber(); spellId = 53358; // 53358 Chimera Shot - Viper // Amount of one aura tick basePoint = aura->GetPartAura(0)->GetAmount() * aura->GetTarget()->GetMaxPower(POWER_MANA) / 100 ; -- cgit v1.2.3