mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 09:39:11 +00:00
fix(DB/Spells): add internal proc cooldown to Nature's Grasp (#10757)
Fixes #9475
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user