mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Scripts/BlackwingLair): Warrior Class Call should not restore to default stance on removal. (#11671)
This commit is contained in:
@@ -1157,29 +1157,6 @@ class spell_class_call_polymorph : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
class aura_class_call_berserk : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(aura_class_call_berserk);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_WARRIOR_BERSERK });
|
||||
}
|
||||
|
||||
void HandleOnEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
if (Unit* target = GetTarget())
|
||||
{
|
||||
target->CastSpell(target, SPELL_WARRIOR_BERSERK);
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectRemove += AuraEffectRemoveFn(aura_class_call_berserk::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_MOD_SHAPESHIFT, AURA_EFFECT_HANDLE_REAL);
|
||||
}
|
||||
};
|
||||
|
||||
class spell_corrupted_totems : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_corrupted_totems);
|
||||
@@ -1314,7 +1291,6 @@ void AddSC_boss_nefarian()
|
||||
RegisterSpellScript(aura_class_call_wild_magic);
|
||||
RegisterSpellScript(aura_class_call_siphon_blessing);
|
||||
RegisterSpellScript(spell_class_call_polymorph);
|
||||
RegisterSpellScript(aura_class_call_berserk);
|
||||
RegisterSpellScript(spell_corrupted_totems);
|
||||
RegisterSpellScript(spell_shadowblink);
|
||||
RegisterSpellScript(spell_spawn_drakonid);
|
||||
|
||||
Reference in New Issue
Block a user