mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +00:00
fix: Qaston revert (#13320)
* Revert "fix(Core/QAston): fixed shields oneshotting (#13271)" This reverts commite05f61d1b3. * Revert "fix(Core): Crash (#13292)" This reverts commita818bcf3e2. * Revert "fix: Crash (#13241)" This reverts commitbe423a91b5. * delete sql * Revert "refactor(Core/Spells): Implement QAston Proc System (#11079)" This reverts commitcbd3fd0967. * add sql revert * fix sql * remove update from world.updates
This commit is contained in:
@@ -89,57 +89,6 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
enum SecondWind
|
||||
{
|
||||
SPELL_SECOND_WIND_TRIGGER = 42771
|
||||
};
|
||||
|
||||
// 42770 - Second Wind
|
||||
class spell_uk_second_wind : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_uk_second_wind() : SpellScriptLoader("spell_uk_second_wind") { }
|
||||
|
||||
class spell_uk_second_wind_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_uk_second_wind_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SECOND_WIND_TRIGGER))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||
if (!spellInfo)
|
||||
return false;
|
||||
|
||||
return (spellInfo->GetAllEffectsMechanicMask() & ((1 << MECHANIC_ROOT) | (1 << MECHANIC_STUN))) != 0;
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit* caster = eventInfo.GetActionTarget();
|
||||
caster->CastSpell(caster, SPELL_SECOND_WIND_TRIGGER, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckProc += AuraCheckProcFn(spell_uk_second_wind_AuraScript::CheckProc);
|
||||
OnEffectProc += AuraEffectProcFn(spell_uk_second_wind_AuraScript::HandleProc, EFFECT_0, SPELL_AURA_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_uk_second_wind_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
enum EnslavedProtoDrake
|
||||
{
|
||||
TYPE_PROTODRAKE_AT = 28,
|
||||
@@ -298,5 +247,4 @@ void AddSC_utgarde_keep()
|
||||
new npc_enslaved_proto_drake();
|
||||
|
||||
new spell_ticking_time_bomb();
|
||||
new spell_uk_second_wind();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user