mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 04:23:47 +00:00
fix(Spells/Paladin) remove custom cooldown and procFlags from Judgement of Wisdom/Light (#22018)
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
--
|
||||||
|
UPDATE `spell_proc_event` SET `procFlags` = 0 WHERE `entry` IN (20186, 20185);
|
||||||
@@ -7826,7 +7826,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
|||||||
// Judgement of Light
|
// Judgement of Light
|
||||||
case 20185:
|
case 20185:
|
||||||
{
|
{
|
||||||
if (!victim || !victim->IsAlive() || victim->HasSpellCooldown(20267))
|
if (!victim || !victim->IsAlive())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto* caster = triggeredByAura->GetBase()->GetCaster();
|
auto* caster = triggeredByAura->GetBase()->GetCaster();
|
||||||
@@ -7836,13 +7836,12 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
|||||||
// 2% of base health
|
// 2% of base health
|
||||||
basepoints0 = int32(victim->CountPctFromMaxHealth(2));
|
basepoints0 = int32(victim->CountPctFromMaxHealth(2));
|
||||||
victim->CastCustomSpell(victim, 20267, &basepoints0, 0, 0, true, 0, triggeredByAura);
|
victim->CastCustomSpell(victim, 20267, &basepoints0, 0, 0, true, 0, triggeredByAura);
|
||||||
victim->AddSpellCooldown(20267, 0, 4 * IN_MILLISECONDS);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Judgement of Wisdom
|
// Judgement of Wisdom
|
||||||
case 20186:
|
case 20186:
|
||||||
{
|
{
|
||||||
if (!victim || !victim->IsAlive() || !victim->HasActivePowerType(POWER_MANA) || victim->HasSpellCooldown(20268))
|
if (!victim || !victim->IsAlive() || !victim->HasActivePowerType(POWER_MANA))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto* caster = triggeredByAura->GetBase()->GetCaster();
|
auto* caster = triggeredByAura->GetBase()->GetCaster();
|
||||||
@@ -7852,7 +7851,6 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
|||||||
// 2% of base mana
|
// 2% of base mana
|
||||||
basepoints0 = int32(CalculatePct(victim->GetCreateMana(), 2));
|
basepoints0 = int32(CalculatePct(victim->GetCreateMana(), 2));
|
||||||
victim->CastCustomSpell(victim, 20268, &basepoints0, nullptr, nullptr, true, 0, triggeredByAura);
|
victim->CastCustomSpell(victim, 20268, &basepoints0, nullptr, nullptr, true, 0, triggeredByAura);
|
||||||
victim->AddSpellCooldown(20268, 0, 4 * IN_MILLISECONDS);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Holy Power (Redemption Armor set)
|
// Holy Power (Redemption Armor set)
|
||||||
|
|||||||
Reference in New Issue
Block a user