Core/Spells: Add dummy effect for Saronite Vapors (63322) (Used in General Vezax encounter)

Based on original code by Lopin

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-12-26 16:25:40 +01:00
parent d3a6c7c1ba
commit 821c0f6c42
@@ -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);