mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734
This commit is contained in:
@@ -1559,6 +1559,17 @@ bool ScriptMgr::OnItemRemove(Player* player, Item* item)
|
||||
return tmpscript->OnRemove(player, item);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnCastItemCombatSpell(Player* player, Unit* victim, SpellInfo const* spellInfo, Item* item)
|
||||
{
|
||||
ASSERT(player);
|
||||
ASSERT(victim);
|
||||
ASSERT(spellInfo);
|
||||
ASSERT(item);
|
||||
|
||||
GET_SCRIPT_RET(ItemScript, item->GetScriptId(), tmpscript, true);
|
||||
return tmpscript->OnCastItemCombatSpell(player, victim, spellInfo, item);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnDummyEffect(Unit* caster, uint32 spellId, SpellEffIndex effIndex, Creature* target)
|
||||
{
|
||||
ASSERT(caster);
|
||||
|
||||
Reference in New Issue
Block a user