Core/Spells: move Death Knights Presences into SpellScripts, fix possible issue after spec change, and fix some startup errors

Closes #10354
This commit is contained in:
joschiwald
2013-07-25 18:06:21 +02:00
parent c4a1ad2810
commit e9750a4b65
6 changed files with 238 additions and 101 deletions
+9 -1
View File
@@ -75,7 +75,7 @@ class spell_dru_dash : public SpellScriptLoader
}
};
// -5229 - Enrage
// 5229 - Enrage
class spell_dru_enrage : public SpellScriptLoader
{
public:
@@ -85,6 +85,14 @@ class spell_dru_enrage : public SpellScriptLoader
{
PrepareSpellScript(spell_dru_enrage_SpellScript);
bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_DRUID_KING_OF_THE_JUNGLE)
|| !sSpellMgr->GetSpellInfo(SPELL_DRUID_ENRAGE_MOD_DAMAGE))
return false;
return true;
}
void OnHit()
{
if (AuraEffect const* aurEff = GetHitUnit()->GetAuraEffectOfRankedSpell(SPELL_DRUID_KING_OF_THE_JUNGLE, EFFECT_0))