Support for UnitEvent and pass to PlayerEvent or CreatureEvent (#313)

This commit is contained in:
iThorgrim
2025-09-17 11:15:03 +02:00
committed by GitHub
parent 972879c696
commit 1153fcaef7
6 changed files with 232 additions and 64 deletions

View File

@@ -782,6 +782,9 @@ namespace LuaGlobalFunctions
* PLAYER_EVENT_ON_BEFORE_UPDATE_SKILL = 61, // (event, player, skill_id, value, max, step) -- Can return new amount
* PLAYER_EVENT_ON_UPDATE_SKILL = 62, // (event, player, skill_id, value, max, step, new_value)
* PLAYER_EVENT_ON_QUEST_ACCEPT = 63, // (event, player, quest)
* PLAYER_EVENT_ON_AURA_APPLY = 64, // (event, player, aura)
* PLAYER_EVENT_ON_HEAL = 65, // (event, player, target, heal) - Can return new heal amount
* PLAYER_EVENT_ON_DAMAGE = 66, // (event, player, target, damage) - Can return new damage amount
* };
* </pre>
*
@@ -1162,6 +1165,9 @@ namespace LuaGlobalFunctions
* CREATURE_EVENT_ON_DIALOG_STATUS = 35, // (event, player, creature)
* CREATURE_EVENT_ON_ADD = 36, // (event, creature)
* CREATURE_EVENT_ON_REMOVE = 37, // (event, creature)
* CREATURE_EVENT_ON_AURA_APPLY = 38, // (event, creature, aura)
* CREATURE_EVENT_ON_HEAL = 39, // (event, creature, target, heal) - Can return new heal amount
* CREATURE_EVENT_ON_DAMAGE = 40, // (event, creature, target, damage) - Can return new damage amount
* CREATURE_EVENT_COUNT
* };
* </pre>