Просмотр исходного кода

Fixed Slaying mode not use HP pot :c

Fukki лет назад: 8
Родитель
Сommit
3d3b713f2f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      index.js
  2. 1 1
      manifest.json

+ 1 - 1
index.js

@@ -101,7 +101,7 @@ module.exports = function AutoPOT(mod) {
 		if (config.enabled && config.hp) {
 			nowHP = Math.round(parseInt(e.hp) / parseInt(e.maxHp) * 100);
 			for (let hp = 0; hp < hpPot.length; hp++) {
-				if (!hpPot[hp][1].inCd && ((!isSlaying && nowHP <= hpPot[hp][1].use_at) || (isSlaying && nowHP <= hpPot[hp][1].slaying)) && hpPot[hp][1].amount > 0 && isCombat && isAlive && !isBG) {
+				if (!hpPot[hp][1].inCd && ((!isSlaying && nowHP <= hpPot[hp][1].use_at) || (isSlaying && nowHP <= hpPot[hp][1].slay_at)) && hpPot[hp][1].amount > 0 && isCombat && isAlive && !isBG) {
 					useItem(hpPot[hp]); hpPot[hp][1].inCd = true; hpPot[hp][1].amount--; setTimeout(function () {hpPot[hp][1].inCd = false;}, hpPot[hp][1].cd * 1000);
 					if (config.notice) msg(`Used ${hpPot[hp][1].name}, still have ${(hpPot[hp][1].amount)} left.`);
 				}

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 	"files": {
-		"index.js": "4986abbd4cf3ae029958be040ee45fa06f7bc18838142c7b27d48de447d44851"
+		"index.js": "ebc996868c3daace41e6aaf033741be107c0da96d5b40d155d1c0fdfabbbd1a2"
 	},
 	"defs": {
 		"C_BIND_ITEM_EXECUTE": "raw",