Fukki 7 years ago
parent
commit
cb61b7c5bb
2 changed files with 5 additions and 3 deletions
  1. 4 2
      index.js
  2. 1 1
      manifest.json

+ 4 - 2
index.js

@@ -44,8 +44,10 @@ module.exports = function AutoPOT(mod) {
 	
 	
 	mod.hook('S_RETURN_TO_LOBBY', 'raw', () => {
 	mod.hook('S_RETURN_TO_LOBBY', 'raw', () => {
 		if (config.enabled) {
 		if (config.enabled) {
-			hpPot = getHP();
-			mpPot = getMP();
+			for (let hp = 0; hp < hpPot.length; hp++)
+				hpPot[hp][1].amount = 0;
+			for (let mp = 0; mp < mpPot.length; mp++)
+				mpPot[mp][1].amount = 0;
 		}
 		}
 	});
 	});
 	
 	

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 {
 	"files": {
 	"files": {
-		"index.js": "b91eb4357b8b61cc8233e2e9f3ea1c537d369f117107bc97bb3ff122881ea76b"
+		"index.js": "f912b375e846a65fbfcfffb739f973d4f23065941ac41ce76fe80534c7c8ee3a"
 	},
 	},
 	"defs": {
 	"defs": {
 		"C_USE_ITEM": 3,
 		"C_USE_ITEM": 3,