diff options
author | Machiavelli <none@none> | 2010-12-26 16:25:40 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-26 16:25:40 +0100 |
commit | 821c0f6c42efd4d194763a8e55f68b89af463a2d (patch) | |
tree | 4dbc8066909b4102bab91c773adfc241a336add7 /src | |
parent | d3a6c7c1ba51b1dfa5fdec17bcca23005765979e (diff) |
Core/Spells: Add dummy effect for Saronite Vapors (63322) (Used in General Vezax encounter)
Based on original code by Lopin
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 79e3b1eeef3..a0bc2b0e0cc 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -5741,6 +5741,14 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo caster->CastCustomSpell(28836, SPELLVALUE_BASE_POINT0, damage, target); } break; + case 63322: // Saronite Vapors + { + int32 mana = int32(GetAmount() * pow(2.0f, GetBase()->GetStackAmount())); // mana restore - bp * 2^stackamount + int32 damage = mana * 2; // damage + caster->CastCustomSpell(target, 63337, &mana, NULL, NULL, true); + caster->CastCustomSpell(target, 63338, &damage, NULL, NULL, true); + break; + } case 71563: if (Aura* newAura = target->AddAura(71564, target)) newAura->SetStackAmount(newAura->GetSpellProto()->StackAmount); |