Browse Source

slight fix for effects

SaltyMonkey 6 years ago
parent
commit
3e76cf00f2
2 changed files with 2 additions and 0 deletions
  1. 1 0
      lib/helpers/enums.js
  2. 1 0
      lib/unitFps.js

+ 1 - 0
lib/helpers/enums.js

@@ -32,6 +32,7 @@ exports.RAW_HOOK_MODE = Object.freeze(
 exports.HOOK_SETTINGS = Object.freeze(
 	{
 		"LAST": { "order": 99999, "filter": { "fake": false, "modified": null } },
+		"LASTFAKE": { "order": 99999, "filter": { "fake": true, "modified": null } },
 		"FIRST": { "order": -10000, "filter": { "fake": false } }
 	}
 );

+ 1 - 0
lib/unitFps.js

@@ -396,6 +396,7 @@ class unitFps {
 		// Combined hooks with complicated logic
 		//---------------------------------------
 		mod.hook(...proto.getData("S_INSTANCE_ARROW"), HOOK_SETTINGS.LAST, blockAdditionalSkillEffectsHandler);
+		mod.hook(...proto.getData("S_INSTANCE_ARROW"), HOOK_SETTINGS.LASTFAKE, blockAdditionalSkillEffectsHandler);
 		mod.hook(...proto.getData("S_CREATURE_CHANGE_HP"), HOOK_SETTINGS.LAST, creatureChangeHpHandler);
 		mod.hook(...proto.getData("S_PLAYER_CHANGE_MP"), HOOK_SETTINGS.LAST, creatureChangeMpHandler);