Night Breeze
Member
- Joined
- Jan 28, 2017
- Messages
- 100
- Reaction score
- 14
In my combat routine, i use this code to cast ArchonDisintegrationWave skill
It runs very perfect, but if there are some obstacle between player and target, bot will always attack the target, but can't kill to target.At this time, i think the bot is a fool, attack the target until the world destroyed.
Is there some API can check this skill can be right cast or ignore obstacle after the unit?
Code:
if (IsArchonActive && target != null && target.Distance < 45 && target.IsInLineOfSight)
{
var position = MathEx.CalculatePointFrom(target.Position, ZetaDia.Me.Position, 45f);
return new TrinityPower(Skills.Wizard.ArchonDisintegrationWave, 45f, position, 100, 100);
}
It runs very perfect, but if there are some obstacle between player and target, bot will always attack the target, but can't kill to target.At this time, i think the bot is a fool, attack the target until the world destroyed.
Is there some API can check this skill can be right cast or ignore obstacle after the unit?