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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user