Created
May 14, 2013 15:54
-
-
Save SymbolixDEV/5577067 to your computer and use it in GitHub Desktop.
Unstabble Affliction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -30108 - Unstable Affliction | |
class spell_warl_unstable_affliction : public SpellScriptLoader | |
{ | |
public: | |
spell_warl_unstable_affliction() : SpellScriptLoader("spell_warl_unstable_affliction") { } | |
class spell_warl_unstable_affliction_AuraScript : public AuraScript | |
{ | |
PrepareAuraScript(spell_warl_unstable_affliction_AuraScript); | |
bool Validate(SpellInfo const* /*spell*/) | |
{ | |
if (!sSpellMgr->GetSpellInfo(SPELL_WARLOCK_UNSTABLE_AFFLICTION_DISPEL)) | |
return false; | |
return true; | |
} | |
void HandleDispel(DispelInfo* dispelInfo) | |
{ | |
if (Unit* caster = GetCaster()) | |
if (AuraEffect const* aurEff = GetEffect(EFFECT_0)) | |
{ | |
int32 damage = aurEff->GetAmount() * 9; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment