mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +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:
@@ -1589,26 +1589,6 @@ public:
|
||||
{
|
||||
return new spell_taldaram_ball_of_inferno_flame_SpellScript();
|
||||
}
|
||||
|
||||
class spell_taldaram_ball_of_inferno_flame_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_taldaram_ball_of_inferno_flame_AuraScript);
|
||||
|
||||
void HandleStackDrop(ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
ModStackAmount(-1);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnProc += AuraProcFn(spell_taldaram_ball_of_inferno_flame_AuraScript::HandleStackDrop);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_taldaram_ball_of_inferno_flame_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
class spell_valanar_kinetic_bomb : public SpellScriptLoader
|
||||
|
||||
@@ -1061,7 +1061,7 @@ public:
|
||||
{
|
||||
DamageInfo* damageInfo = eventInfo.GetDamageInfo();
|
||||
SpellInfo const* procSpell = eventInfo.GetSpellInfo();
|
||||
return eventInfo.GetActor() && eventInfo.GetActionTarget() && ((damageInfo && damageInfo->GetDamage()) || eventInfo.GetHitMask() & PROC_HIT_ABSORB) && procSpell && procSpell->SpellIconID != 2731; // Xinef: Mark of the Fallen Champion
|
||||
return eventInfo.GetActor() && eventInfo.GetActionTarget() && ((damageInfo && damageInfo->GetDamage()) || eventInfo.GetHitMask() & PROC_EX_ABSORB) && procSpell && procSpell->SpellIconID != 2731; // Xinef: Mark of the Fallen Champion
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
|
||||
@@ -1115,7 +1115,7 @@ public:
|
||||
{
|
||||
DamageInfo* damageInfo = eventInfo.GetDamageInfo();
|
||||
SpellInfo const* procSpell = eventInfo.GetSpellInfo();
|
||||
return eventInfo.GetActor() && eventInfo.GetActionTarget() && ((damageInfo && damageInfo->GetDamage()) || eventInfo.GetHitMask() & PROC_HIT_ABSORB) && (!procSpell || procSpell->SpellIconID != 2731); // Xinef: Mark of the Fallen Champion
|
||||
return eventInfo.GetActor() && eventInfo.GetActionTarget() && ((damageInfo && damageInfo->GetDamage()) || eventInfo.GetHitMask() & PROC_EX_ABSORB) && (!procSpell || procSpell->SpellIconID != 2731); // Xinef: Mark of the Fallen Champion
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
|
||||
@@ -1404,41 +1404,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// 72176 - Blood Beast's Blood Link
|
||||
class spell_deathbringer_blood_beast_blood_link : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_deathbringer_blood_beast_blood_link() : SpellScriptLoader("spell_deathbringer_blood_beast_blood_link") { }
|
||||
|
||||
class spell_deathbringer_blood_beast_blood_link_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_deathbringer_blood_beast_blood_link_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_BLOOD_LINK_DUMMY))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
eventInfo.GetProcTarget()->CastCustomSpell(SPELL_BLOOD_LINK_DUMMY, SPELLVALUE_BASE_POINT0, 3, (Unit*)nullptr, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectProc += AuraEffectProcFn(spell_deathbringer_blood_beast_blood_link_AuraScript::HandleProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_deathbringer_blood_beast_blood_link_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_boss_deathbringer_saurfang()
|
||||
{
|
||||
new boss_deathbringer_saurfang();
|
||||
@@ -1453,5 +1418,4 @@ void AddSC_boss_deathbringer_saurfang()
|
||||
new spell_deathbringer_boiling_blood();
|
||||
new achievement_ive_gone_and_made_a_mess();
|
||||
new npc_icc_blood_beast();
|
||||
new spell_deathbringer_blood_beast_blood_link();
|
||||
}
|
||||
|
||||
@@ -1076,23 +1076,9 @@ public:
|
||||
caster->CastCustomSpell(SPELL_GASEOUS_BLOAT, SPELLVALUE_AURA_STACK, 10, caster, false);*/
|
||||
}
|
||||
|
||||
void HandleProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
uint32 stack = GetStackAmount();
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
|
||||
int32 const mod = caster->GetMap()->Is25ManRaid() ? 1500 : 1250;
|
||||
int32 dmg = 0;
|
||||
for (uint8 i = 1; i <= stack; ++i)
|
||||
dmg += mod * i;
|
||||
|
||||
caster->CastCustomSpell(SPELL_EXPUNGED_GAS, SPELLVALUE_BASE_POINT0, dmg);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_putricide_gaseous_bloat_AuraScript::HandleExtraEffect, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE);
|
||||
OnProc += AuraProcFn(spell_putricide_gaseous_bloat_AuraScript::HandleProc);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1721,45 +1707,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// 71770 - Ooze Spell Tank Protection
|
||||
class spell_putricide_ooze_tank_protection : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_putricide_ooze_tank_protection() : SpellScriptLoader("spell_putricide_ooze_tank_protection") { }
|
||||
|
||||
class spell_putricide_ooze_tank_protection_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_putricide_ooze_tank_protection_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(spellInfo->Effects[EFFECT_0].TriggerSpell) ||
|
||||
!sSpellMgr->GetSpellInfo(spellInfo->Effects[EFFECT_1].TriggerSpell))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
|
||||
Unit* actionTarget = eventInfo.GetActionTarget();
|
||||
actionTarget->CastSpell((Unit*)nullptr, GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectProc += AuraEffectProcFn(spell_putricide_ooze_tank_protection_AuraScript::HandleProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
|
||||
OnEffectProc += AuraEffectProcFn(spell_putricide_ooze_tank_protection_AuraScript::HandleProc, EFFECT_1, SPELL_AURA_PROC_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_putricide_ooze_tank_protection_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_boss_professor_putricide()
|
||||
{
|
||||
new boss_professor_putricide();
|
||||
@@ -1784,5 +1731,4 @@ void AddSC_boss_professor_putricide()
|
||||
new spell_putricide_mutated_transformation_dmg();
|
||||
new spell_putricide_eat_ooze();
|
||||
new spell_putricide_regurgitated_ooze();
|
||||
new spell_putricide_ooze_tank_protection();
|
||||
}
|
||||
|
||||
@@ -952,7 +952,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
me->ModifyHealth(me->CountPctFromMaxHealth(5));
|
||||
Unit::DealHeal(me, me, me->CountPctFromMaxHealth(3));
|
||||
_events.ScheduleEvent(EVENT_HEALTH_CHECK, 1000);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user