Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734 missing code (cherry picked from commit eac9c1f0b992fd3622fd7dd864b2acc2781ec778)
This commit is contained in:
1 parent
a627ea354a
commit
5e57ad6fa8
2 files changed
+3
-1
No files matched your search
@@ -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