updates to remove chests and fixes for dungeon

This commit is contained in:
2025-08-30 23:31:22 -04:00
parent c45c5185a1
commit 3fd88e1297
2 changed files with 11 additions and 6 deletions

View File

@@ -38,6 +38,11 @@ const mythicBossKill: player_event_on_kill_creature = (
) => {
// if the creature that is killed is a boss from a mythic plus instance lets check the chart to figure out the
// token reward.
PrintInfo(`IsBossDbCheck: ${isBossDbCheck(killed.GetEntry())} NAme: ${killed.GetName()}`);
const mapId = killer.GetMap().GetMapId();
const instanceId = killer.GetInstanceId();
if (
isInMythicPlus(killer.GetGUID(), killer.GetInstanceId()) &&
isBossDbCheck(killed.GetEntry())

View File

@@ -49,11 +49,11 @@ const removeVisualSpell: gameobject_event_on_use = (event: number, gameObject: G
};
// Register All visuals by chest.
RegisterGameObjectEvent(RewardChests.Normal, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
RegisterGameObjectEvent(RewardChests.Normal, GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Normal, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Normal, GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));
RegisterGameObjectEvent(RewardChests.Elite, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
RegisterGameObjectEvent(RewardChests.Elite, GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Elite, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Elite, GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));
RegisterGameObjectEvent(RewardChests.Badass, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
RegisterGameObjectEvent(RewardChests.Badass,GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Badass, GameObjectEvents.GAMEOBJECT_EVENT_ON_SPAWN, (...args) => showVisualSpell(...args));
// RegisterGameObjectEvent(RewardChests.Badass,GameObjectEvents.GAMEOBJECT_EVENT_ON_USE, (...args) => removeVisualSpell(...args));