mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 11:10:33 +00:00
fix(Scripts/Spells): Add missing Druid T10 Balance 2P bonus (#24865)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: Ariel Bastos <ariel@arielbastos.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
-- Threat of Thassarian: OH attack should fire even when MH misses/dodges/parries
|
||||||
|
-- SpellTypeMask 0 = don't filter by spell type (miss/dodge/parry have no damage, so
|
||||||
|
-- PROC_SPELL_TYPE_DAMAGE won't match - need to allow PROC_SPELL_TYPE_NO_DMG_HEAL too)
|
||||||
|
-- HitMask 0x477 = PROC_HIT_NORMAL | PROC_HIT_CRITICAL | PROC_HIT_MISS | PROC_HIT_DODGE | PROC_HIT_PARRY | PROC_HIT_BLOCK | PROC_HIT_ABSORB
|
||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` = -65661;
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `DisableEffectsMask`, `ProcsPerMinute`, `Chance`, `Cooldown`, `Charges`) VALUES
|
||||||
|
(-65661, 0, 15, 4194321, 537001988, 0, 0x10, 0, 2, 0x477, 0, 0, 0, 100, 0, 0);
|
||||||
@@ -88,6 +88,8 @@ enum DruidSpells
|
|||||||
SPELL_DRUID_GLYPH_OF_RIP = 54818,
|
SPELL_DRUID_GLYPH_OF_RIP = 54818,
|
||||||
SPELL_DRUID_RIP_DURATION_LACERATE_DMG = 60141,
|
SPELL_DRUID_RIP_DURATION_LACERATE_DMG = 60141,
|
||||||
SPELL_DRUID_REJUVENATION_T10_PROC = 70691,
|
SPELL_DRUID_REJUVENATION_T10_PROC = 70691,
|
||||||
|
SPELL_DRUID_BALANCE_T10_BONUS = 70718,
|
||||||
|
SPELL_DRUID_BALANCE_T10_BONUS_PROC = 70721,
|
||||||
SPELL_DRUID_LANGUISH = 71023,
|
SPELL_DRUID_LANGUISH = 71023,
|
||||||
// T9 Feral Relic
|
// T9 Feral Relic
|
||||||
SPELL_DRUID_T9_FERAL_RELIC_BEAR = 67354,
|
SPELL_DRUID_T9_FERAL_RELIC_BEAR = 67354,
|
||||||
@@ -234,6 +236,11 @@ class spell_dru_omen_of_clarity : public AuraScript
|
|||||||
{
|
{
|
||||||
PrepareAuraScript(spell_dru_omen_of_clarity);
|
PrepareAuraScript(spell_dru_omen_of_clarity);
|
||||||
|
|
||||||
|
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||||
|
{
|
||||||
|
return ValidateSpellInfo({ SPELL_DRUID_BALANCE_T10_BONUS, SPELL_DRUID_BALANCE_T10_BONUS_PROC });
|
||||||
|
}
|
||||||
|
|
||||||
bool CheckProc(ProcEventInfo& eventInfo)
|
bool CheckProc(ProcEventInfo& eventInfo)
|
||||||
{
|
{
|
||||||
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||||
@@ -268,9 +275,17 @@ class spell_dru_omen_of_clarity : public AuraScript
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
|
||||||
|
{
|
||||||
|
Unit* target = GetTarget();
|
||||||
|
if (target->HasAura(SPELL_DRUID_BALANCE_T10_BONUS))
|
||||||
|
target->CastSpell(nullptr, SPELL_DRUID_BALANCE_T10_BONUS_PROC, true, nullptr, aurEff);
|
||||||
|
}
|
||||||
|
|
||||||
void Register() override
|
void Register() override
|
||||||
{
|
{
|
||||||
DoCheckProc += AuraCheckProcFn(spell_dru_omen_of_clarity::CheckProc);
|
DoCheckProc += AuraCheckProcFn(spell_dru_omen_of_clarity::CheckProc);
|
||||||
|
OnEffectProc += AuraEffectProcFn(spell_dru_omen_of_clarity::HandleProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user