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:
ariel-
2017-02-21 22:37:53 -03:00
committed by funjoker
parent a627ea354a
commit 5e57ad6fa8
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -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);
}
}