Fukki 8 years ago
parent
commit
7a63565878
4 changed files with 8 additions and 4 deletions
  1. 3 2
      README.md
  2. 1 1
      index.js
  3. 1 1
      manifest.json
  4. 3 0
      module.json

+ 3 - 2
README.md

@@ -12,6 +12,7 @@ start with "autopot" or "pot"
 - pot reload mp -> reload mp.json file
 - pot reload config -> reload config.json file
 
+***HP Pot slaying mode only use in combat***</br>
 ***Pot will not use when contract, mount, battleground***</br>
 ***config.json, hp.json, mp.json will generate after enter the game***</br>
 
@@ -48,5 +49,5 @@ start with "autopot" or "pot"
 }
 ```
 # Noted Commit 30
-- added "inCombat" option into hp.json and mp.json make your way setting only used in combat or not</br>
-- for old user and lazy to add it with your self just removed hp.json and mp.json then re-login for new generate</br>
+- added "inCombat" option into hp.json and mp.json for setting only use in combat or not</br>
+- for old user and who is lazy to add it by your self just remove hp.json and mp.json then re-login for new generate</br>

+ 1 - 1
index.js

@@ -102,7 +102,7 @@ module.exports = function AutoPOT(mod) {
 			nowHP = Math.round(parseInt(e.hp) / parseInt(e.maxHp) * 100);
 			for (let hp = 0; hp < hpPot.length; hp++) {
 				useCombat = hpPot[hp][1].inCombat ? isCombat : true;
-				if (!hpPot[hp][1].inCd && ((!isSlaying && nowHP <= hpPot[hp][1].use_at) || (isSlaying && nowHP <= hpPot[hp][1].slay_at)) && hpPot[hp][1].amount > 0 && isAlive && useCombat && !isBG && !isCon && !isMount) {
+				if (!hpPot[hp][1].inCd && ((!isSlaying && nowHP <= hpPot[hp][1].use_at && useCombat) || (isSlaying && nowHP <= hpPot[hp][1].slay_at && isCombat)) && hpPot[hp][1].amount > 0 && isAlive && !isBG && !isCon && !isMount) {
 					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": "f08c2330cd1a4b06662b5351e47beaf72d41098d554a1b087aced97ebad6c718"
+		"index.js": "d838e83655b8cd230d03587952160fb818db1d40b488387e9b0b1f592ec890f3"
 	},
 	"defs": {
 		"C_BIND_ITEM_EXECUTE": "raw",

+ 3 - 0
module.json

@@ -1,5 +1,8 @@
 {
 	"disableAutoUpdate": false,
+    "options": {
+        "niceName": "AutoPOT"
+    },
 	"servers": ["https://raw.githubusercontent.com/Fukki/auto-pot/master/"],
 	"supportUrl": "https://github.com/Fukki/auto-pot/issues/"
 }