Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Problem with config
Nataniel88
#1 Posted : Saturday, February 2, 2019 3:13:42 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 57

Thanks: 3 times
Was thanked: 20 time(s) in 7 post(s)
Hi.
I didn't know in which forum I should post this, if I chose wrong one, please transfer it to the proper one.

I've tried to make config for Combo Priest, but I'm failing at the very beginning. I wanted to prevent bot from buffing minions with less than 5 health with Divine Spirit. I've used something like that:

{
"comment": "",

"condition": "my_target(count(), health) <= 4",

"value": "-1000",
},

But it is not working, bot doesn't want to buff minion even if it has 5 or more health. In log there can be seen that it gives DS -1000 bonus all the time. "my_target(count(), health <= 4) > 0" has the same effect.

What am I doing wrong?

If someone want to test it, you can download review and config for DS from there:
https://www.dropbox.com/...P2Ov4ap-6VYGta2q5a?dl=0

Just check turn 4 and recalculate, there is Tar Creeper with 5 health, so using DS on it should have got positive value, but it has -1000 or close to it.
JoyAdmin
#2 Posted : Sunday, February 3, 2019 1:21:05 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,540

Thanks: 765 times
Was thanked: 4312 time(s) in 1523 post(s)
The condition is wrong.

correct one : (no target has health over 5)

"condition": "my_target( count(), health > 4 ) <=0 ",




Nataniel88
#3 Posted : Wednesday, February 6, 2019 3:22:02 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 57

Thanks: 3 times
Was thanked: 20 time(s) in 7 post(s)
Ah, so it works that way. Opposite to what I was think of.

Thanks!
Nataniel88
#4 Posted : Wednesday, February 6, 2019 3:37:39 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 57

Thanks: 3 times
Was thanked: 20 time(s) in 7 post(s)
But wait, if "my_target( count(), health > 4 ) <=0" means that "no target has health over 5", bot will not use this card if there are ANY minion on board with less than 5 HP. So what condition should I put to force him on using it on minions with 5 HP or more but prevent from using on smaller ones?
JoyAdmin
#5 Posted : Thursday, February 7, 2019 12:26:26 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,540

Thanks: 765 times
Was thanked: 4312 time(s) in 1523 post(s)
Please use debugger tool to test various conditions.

The debug board is editable.

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.