tdBattlePetScript

tdBattlePetScript

389k Downloads

ability.duration in combination with <,> and ~ bug

cosinussinus opened this issue ยท 5 comments

commented

TDScript doesn't work if you use ability.duration with <, > if the pet with this ability isn't active.

Example:
Your active pet is a rabbit (1/2/1)
TD Script:
use(Dodge:312)
use(Burrow:159) [self.ability(Dodge:312).duration<3]
use(#1)

Fight:
Round 1: Dodge
Round 2: ability 1
Round 3: ability 1
Round 4 Burrow
... --> This one works fine

Now the buggy version
Your active pet is a Emerald-Proto-Whelp (2/2/2) (Emerald bite/Emerald Presence/Emerald Dream)
TD Script: (Same one)
use(Dodge:312)
use(Burrow:159) [self.ability(Dodge:312).duration<3]
use(#1)
Fight:
Round 1: Script is doing nothing --> normally (old Version 8) the script will do "use(#1)"

edit: This issue is caused by the following change:
d99b9f0

commented

Hello, now I already have this solution. But it's still a shame that the author is not working on the addon. He wrote me by email that he was too busy for this addon. When I wrote back that I would like to donate something to him and whether the donation link is still up to date, unfortunately nothing came back ... :(

Do you have a solution for my latest problem? I always have such a wooden box as an Elvui user: #50

I am looking after this addon now. I will try and fix this soon :)

commented

Duplicate of #26

commented

Unfortunately I have the problem too. :( You use the option very often.
Such as: ability(Ghostly Bite: 654) [enemy.ability (Mudslide: 572) .duration <5]
Unfortunately, that doesn't work either.

commented

Unfortunately I have the problem too. :( You use the option very often.
Such as: ability(Ghostly Bite: 654) [enemy.ability (Mudslide: 572) .duration <5]
Unfortunately, that doesn't work either.

There is a workaround for this issue. You have to add the enemy who has the ability. in your case:
ability(Ghostly Bite: 654) [enemy(#1).active & enemy.ability (Mudslide: 572) .duration <5]
It's just a temporary solution. I hope that will be fixed one day ...

commented

Hello, now I already have this solution. But it's still a shame that the author is not working on the addon. He wrote me by email that he was too busy for this addon. When I wrote back that I would like to donate something to him and whether the donation link is still up to date, unfortunately nothing came back ... :(

Do you have a solution for my latest problem?
I always have such a wooden box as an Elvui user: #50