diff options
| author | John Holiver <none@none> | 2010-08-21 01:02:38 -0300 |
|---|---|---|
| committer | John Holiver <none@none> | 2010-08-21 01:02:38 -0300 |
| commit | fcca6060d0f4edc71b9862b06378943af355e683 (patch) | |
| tree | 2a3336656b5f3a49d6fd703208be5f520ba57915 | |
| parent | 8cfc3782e3290539f56de57cfa1f9bb7bdf688e4 (diff) | |
Core/Spells/Scripts: Another spell effect needed for ToCr (Paralytic Toxin). Thanks for Dark0r.
--HG--
branch : trunk
| -rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index a4c28282baa..f4affd83f46 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -1148,6 +1148,16 @@ void AuraEffect::UpdatePeriodic(Unit * caster) case 59911: // Tenacity (vehicle) GetBase()->RefreshDuration(); break; + case 66823: case 67618: case 67619: case 67620: // Paralytic Toxin + // Get 0 effect aura + if (AuraEffect *slow = GetBase()->GetEffect(0)) + { + int32 newAmount = slow->GetAmount() - 10; + if (newAmount < -100) + newAmount = -100; + slow->ChangeAmount(newAmount); + } + break; } break; case SPELLFAMILY_MAGE: @@ -1871,7 +1881,7 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const } break; case 66118: // Leeching Swarm (Anub'arak) - int32 lifeLeeched = target->GetHealth() * GetSpellProto()->EffectBasePoints[0] / 100; + int32 lifeLeeched = target->GetHealth() * GetAmount() / 100; if (lifeLeeched < 250) lifeLeeched = 250; // Damage caster->CastCustomSpell(target, 66240, &lifeLeeched, 0, 0, false); |
