teralove 7 years ago
parent
commit
b68c4f6ded
2 changed files with 2 additions and 2 deletions
  1. 1 1
      index.js
  2. 1 1
      module.json

+ 1 - 1
index.js

@@ -61,7 +61,7 @@ module.exports = function AutoHeal(mod) {
         mod.command.message('Casting ' + (mod.settings.autoCast ? 'enabled' : 'disabled'));
         mod.command.message('Casting ' + (mod.settings.autoCast ? 'enabled' : 'disabled'));
     });
     });
     
     
-    mod.hook('S_LOGIN', 10, (event) => {
+    mod.game.on('enter_game', () => { 
         job = (event.templateId - 10101) % 100;
         job = (event.templateId - 10101) % 100;
         (mod.settings.skills[job]) ? load() : unload();
         (mod.settings.skills[job]) ? load() : unload();
     })
     })

+ 1 - 1
module.json

@@ -3,7 +3,7 @@
 	"name": "auto-heal",
 	"name": "auto-heal",
 	"author": "teralove",
 	"author": "teralove",
 	"description": "Auto lockon and instantly heal/cleanse party members.",
 	"description": "Auto lockon and instantly heal/cleanse party members.",
-    "version": "1/23/2019",
+    "version": "4/26/2019",
     "donationUrl": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=PXRFYB39SQP4A", 
     "donationUrl": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=PXRFYB39SQP4A", 
 	"options": {
 	"options": {
 		"niceName": "Auto Heal",
 		"niceName": "Auto Heal",