Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adds support for Decimate to SpellEffects #43

Closed
wants to merge 2 commits into from

2 participants

@ZuSe

Sorry for the two commits,
had to reformat the code.. got some probs with Tab vs Space ;)

@Schmoozerd

Alternate version in [11956].
Thank you for bringing the topic up again!

@Schmoozerd Schmoozerd closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 12, 2012
  1. Added SpellEffect for Decimate

    ZuSe authored
  2. Added missing splash

    ZuSe authored
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/game/SpellEffects.cpp
View
9 src/game/SpellEffects.cpp
@@ -7617,6 +7617,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget, 72588, true);
return;
}
+ case 71123: // Decimate (Stinky & Precious in ICC)
+ {
+ if (!unitTarget || unitTarget->GetHealthPercent() <= 15.0f)
+ return;
+
+ int32 damage =(unitTarget->GetHealth() - unitTarget->GetMaxHealth() * 0.15);
+ unitTarget->CastCustomSpell(unitTarget, 28375, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID);
+ return;
+ }
case 72034: // Whiteout
case 72096: // Whiteout (heroic)
{
Something went wrong with that request. Please try again.