mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Scripts/Spells): Nether Portal - Perseverence should not increase… (#13951)
This commit is contained in:
@@ -26,6 +26,8 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "karazhan.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "SpellScript.h"
|
||||
|
||||
enum Netherspite
|
||||
{
|
||||
@@ -347,7 +349,23 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
class spell_nether_portal_perseverence : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_nether_portal_perseverence);
|
||||
|
||||
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
const_cast<AuraEffect*>(aurEff)->SetAmount(aurEff->GetAmount() + 30000);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectApply += AuraEffectApplyFn(spell_nether_portal_perseverence::HandleApply, EFFECT_2, SPELL_AURA_MOD_INCREASE_HEALTH, AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_boss_netherspite()
|
||||
{
|
||||
new boss_netherspite();
|
||||
RegisterSpellScript(spell_nether_portal_perseverence);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user