Browse Source

added mythic explosion hide

SaltyMonkey 6 years ago
parent
commit
7e5a755136
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/unitFps.js

+ 3 - 3
lib/unitFps.js

@@ -466,10 +466,10 @@ class unitFps {
 			}
 		};
 
-		/*const itemsExplosionHandler = (event) => {
+		const itemsExplosionHandler = (event) => {
 			if (isEffectBlockable(event))
 				return false;
-		};*/
+		};
 
 		const appearanceChangeHandler = (event) => {
 			if (isEntityBlocked(event.gameId)) return false;
@@ -575,7 +575,7 @@ class unitFps {
 
 		mod.hook(...proto.getData("S_ACTION_STAGE"), HOOK_SETTINGS.LAST, actionHandler);
 		mod.hook(...proto.getData("S_ACTION_END"), HOOK_SETTINGS.LAST, actionHandler);
-		//mod.hook(...proto.getData("S_ITEM_EXPLOSION_RESULT"), HOOK_SETTINGS.LAST, itemsExplosionHandler); //TODO: NEED MAP
+		mod.hook(...proto.getData("S_ITEM_EXPLOSION_RESULT"), HOOK_SETTINGS.LAST, itemsExplosionHandler);
 
 		mod.hook(...proto.getData("S_ABNORMALITY_BEGIN"), HOOK_SETTINGS.LAST, abnormalsHandler);
 		mod.hook(...proto.getData("S_ABNORMALITY_END"), HOOK_SETTINGS.LAST, abnormalsHandler);