aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-08 03:10:03 +0100
committerQAston <none@none>2009-03-08 03:10:03 +0100
commit86a4bc7f3f8f0d4f015050469b65ffe4d983864e (patch)
tree98bf4541c1bb4a6a80ce9bab2196bc2f2c476ac2 /src/game/SpellEffects.cpp
parent63b4a12251345f6bd7c4e85d9acc63ad6ca64cb9 (diff)
*Fix judgements of the Wise
*Fix Druids Survival Instincts and thunder clap - by Lightguard. *Fix Death Coil - by Fisherman, aerione_alt, Lightguard --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index caf33897be9..494957e354c 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -425,6 +425,12 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
damage+= int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * pct / 100);
break;
}
+ // Thunder Clap
+ else if(m_spellInfo->SpellFamilyFlags[0] & 0x80)
+ {
+ damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 12 / 100);
+ break;
+ }
break;
}
case SPELLFAMILY_WARLOCK:
@@ -1858,7 +1864,27 @@ void Spell::EffectDummy(uint32 i)
m_caster->CastSpell(m_caster,spell_id,true);
return;
}
+ // Death Coil
+ if(m_spellInfo->SpellFamilyFlags[0] & 0x002000)
+ {
+ uint32 spell_id = NULL;
+ damage += m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.15f;
+ if(m_caster->IsFriendlyTo(unitTarget))
+ {
+ if(unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD)
+ return;
+ spell_id = 47633;
+ damage *= 1.5f;
+ }
+ else
+ spell_id = 47632;
+
+ bp = int32(damage);
+ m_caster->CastCustomSpell(unitTarget,spell_id,&bp,NULL,NULL,true);
+ return;
+ }
+ break;
}
//spells triggered by dummy effect should not miss