mirror of
https://github.com/araxiaonline/ets-module-collection.git
synced 2026-06-13 02:52:20 -04:00
updates to remove chests and fixes for dungeon
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user