I am currently replaced the original cr logic of Cyclone in exile.cs into:
It works "nearly" perfect unless there are any monster get really close to the character, if the above happened, the bot did nothing: no log, no action, the character just don't move
This hanging will remain until new trigger fired (e.x: my bot will leap slam out if life is too low), the Cyclone is linked to Blood Magic and I am pretty sure it happened as well when on Full Life.
I am having 2 guesses that cause such problem:
1. The cyclone logic is crushed with other skills (My character contains only 2 attk skills, leap slam and cyclone), my leap slam logic is:
- BestTarget.Distance >= 25 or
- (Character have > 30 && < 75 Health percentage) && BestTarget is not a unique monster
the above two situation will also require BestTarget.IsInLineOfSight && LokiPoe.RangedLineOfSight.CanSee(Me.Position, BestTarget.Position)
It makes sense to say the above logic is crushed although I can't see how, but I still can't get rid of this reason
2. The BestTarget is matched the requirement perfectly (is in line of sight and can see), but the function "NumberOfMeNear" cannot count monster that really close to the character, so this part of cyclone cast logic returned false and the bot can't found a valid skill to cast.
Thanks for your time to read my post, hope I can solve the above problem
Code:
ret =>
NumberOfMeNear(Me, 25, 1) && BestTarget.IsInLineOfSight && LokiPoe.RangedLineOfSight.CanSee(Me.Position, BestTarget.Position)
It works "nearly" perfect unless there are any monster get really close to the character, if the above happened, the bot did nothing: no log, no action, the character just don't move
This hanging will remain until new trigger fired (e.x: my bot will leap slam out if life is too low), the Cyclone is linked to Blood Magic and I am pretty sure it happened as well when on Full Life.
I am having 2 guesses that cause such problem:
1. The cyclone logic is crushed with other skills (My character contains only 2 attk skills, leap slam and cyclone), my leap slam logic is:
- BestTarget.Distance >= 25 or
- (Character have > 30 && < 75 Health percentage) && BestTarget is not a unique monster
the above two situation will also require BestTarget.IsInLineOfSight && LokiPoe.RangedLineOfSight.CanSee(Me.Position, BestTarget.Position)
It makes sense to say the above logic is crushed although I can't see how, but I still can't get rid of this reason
2. The BestTarget is matched the requirement perfectly (is in line of sight and can see), but the function "NumberOfMeNear" cannot count monster that really close to the character, so this part of cyclone cast logic returned false and the bot can't found a valid skill to cast.
Thanks for your time to read my post, hope I can solve the above problem
