dodying / UserJs

MIT License
313 stars 120 forks source link

v2.83c bug #20

Closed nomagon closed 7 years ago

nomagon commented 7 years ago

Hi dodying,

I tried install v2.83c. I can save config now. However, the ITEM section does not work properly. I only enabled Cure, when HP,2,15000. But when I started battle with full hp (more than 20k) it will Cure. It also keeps casting Cure no matter what my hp is!

You evade the attack from Kaede Mitsumine.

You are healed for 0 Health Points. You cast Cure.   You gain the effect Spirit Shield. You gain the effect Spark of Life. You gain the effect Shadow Veil. You gain the effect Hastened. You gain the effect Protection. Spawned Monster A: MID=41539 (Kaede Mitsumine) LV=472 HP=150238 Initializing arena challenge #1 (Round 1 / 5) ...

dodying commented 7 years ago

lol, you don't understand how to set a condition. the hp in script was the percent of hp of total hp eg: The max hp is 20K, now hp 1K The hp got in script was 5 (5%)

More see:https://github.com/dodying/UserJs/tree/master/HentaiVerse/hvAutoAttack#自定义判断条件-customize-condition

nomagon commented 7 years ago

My bad! thanks, I will test it again

Edit: Works fine now, thank you!