fix(DB/Spells): add internal proc cooldown to Nature's Grasp (#10757)

Fixes #9475
This commit is contained in:
UltraNix
2022-03-02 13:10:40 +01:00
committed by GitHub
parent 8b453642e6
commit b3c8c779dc
2 changed files with 5 additions and 16 deletions

View File

@@ -9049,22 +9049,6 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
ToPlayer()->RemoveCategoryCooldown(1248);
}
}
else if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DRUID)
{
// Nature's Grasp
if( triggerEntry->SpellIconID == 20 )
{
if (!victim)
return false;
if (AuraEffect* aurEff = victim->GetAuraEffect(SPELL_AURA_MOD_ROOT, SPELLFAMILY_DRUID, 20, 0))
if ((aurEff->GetBase()->GetMaxDuration() - aurEff->GetBase()->GetDuration()) < 1000)
return false;
CastSpell(victim, trigger_spell_id, true);
return true;
}
}
// Custom basepoints/target for exist spell
// dummy basepoints or other customs