Skip to content

Instantly share code, notes, and snippets.

@SymbolixDEV
Created May 14, 2013 15:54
Show Gist options
  • Save SymbolixDEV/5577067 to your computer and use it in GitHub Desktop.
Save SymbolixDEV/5577067 to your computer and use it in GitHub Desktop.
Unstabble Affliction
// -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