fix(DB/Spells): add internal proc cooldown to Nature's Grasp (#10757)
Fixes #9475
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1645377551356909900');
|
||||||
|
|
||||||
|
DELETE FROM `spell_proc_event` WHERE `entry`=-16689;
|
||||||
|
INSERT INTO `spell_proc_event` VALUES
|
||||||
|
(-16689,0,0,0,0,0,0,0,2,0,0,1000);
|
||||||
@@ -9049,22 +9049,6 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
|
|||||||
ToPlayer()->RemoveCategoryCooldown(1248);
|
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
|
// Custom basepoints/target for exist spell
|
||||||
// dummy basepoints or other customs
|
// dummy basepoints or other customs
|
||||||
|
|||||||
Reference in New Issue
Block a user