mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734
missing code
(cherry picked from commit eac9c1f0b9)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- UPDATE `item_template` SET `spellppmRate_1`=2.5, `ScriptName`='item_generic_limit_chance_above_60' WHERE `entry`=19169;
|
||||
UPDATE `item_template_addon` SET `SpellPPMChance`=2.5 WHERE `Id`=19169;
|
||||
@@ -7983,7 +7983,7 @@ void Player::CastItemCombatSpell(DamageInfo const& damageInfo, Item* item, ItemT
|
||||
else if (chance > 100.0f)
|
||||
chance = GetWeaponProcChance();
|
||||
|
||||
if (roll_chance_f(chance))
|
||||
if (roll_chance_f(chance) && sScriptMgr->OnCastItemCombatSpell(this, damageInfo.GetVictim(), spellInfo, item))
|
||||
CastSpell(damageInfo.GetVictim(), spellInfo->Id, item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user