I made o Tech class enemy who gives shield to his allies.But a problem occur.I put it a A.I code to prevent him from giving the shield randomly but when ı do that my actors cannot perform any attack skill.İnterestingly they can perform heal or buff skills but they cannot attack to tech.This is only happening when the Tech alone.If there is an ally next to it, there will be no problems until that ally dies and then same problem occur again.I controlled everything one by one.When i delete the A.I Code there is no problem.But i when ı put the code that bug occures.Heres the enemy notes:
<DragonBone Settings>
Battler: BladeMaster
Scalex: -0.77
Scaley: 0.77
Width: 420
Height: 433
Ani Wait: Idle
Ani Walk: Idle
Ani Attack: Attack A
Ani Swing: Attack B
Ani Thrust: Attack C
Ani Missile: Attack A
Ani Skill: Attack A
Ani Chant: Idle
Ani Spell: Attack A
Ani Item: Attack A
Ani Guard: Guard
Ani Evade: Idle
Ani Damage: Damage
Ani Abnormal: Idle
Ani Sleep: Idle
Ani Dying: Idle
Ani Dead: Dead
Ani Victory: Idle
Ani Escape: Idle
Replace Sprite
</DragonBone Settings>
<AI Level: 120>
<AI Priority>
HP% param <= 70%: Guard, Lowest HP%
</AI Priority>
With this code this problem occures:


When ı delete the A.I code and make the enemy note like this no problem occured:
<DragonBone Settings>
Battler: BladeMaster
Scalex: -0.77
Scaley: 0.77
Width: 420
Height: 433
Ani Wait: Idle
Ani Walk: Idle
Ani Attack: Attack A
Ani Swing: Attack B
Ani Thrust: Attack C
Ani Missile: Attack A
Ani Skill: Attack A
Ani Chant: Idle
Ani Spell: Attack A
Ani Item: Attack A
Ani Guard: Guard
Ani Evade: Idle
Ani Damage: Damage
Ani Abnormal: Idle
Ani Sleep: Idle
Ani Dying: Idle
Ani Dead: Dead
Ani Victory: Idle
Ani Escape: Idle
Replace Sprite
</DragonBone Settings>

Will you help me pls?Thank you in advance
NOTE: THİS PROBLEM BEGİNS WHEN I START THE BATTLE INSTANTLY.
<DragonBone Settings>
Battler: BladeMaster
Scalex: -0.77
Scaley: 0.77
Width: 420
Height: 433
Ani Wait: Idle
Ani Walk: Idle
Ani Attack: Attack A
Ani Swing: Attack B
Ani Thrust: Attack C
Ani Missile: Attack A
Ani Skill: Attack A
Ani Chant: Idle
Ani Spell: Attack A
Ani Item: Attack A
Ani Guard: Guard
Ani Evade: Idle
Ani Damage: Damage
Ani Abnormal: Idle
Ani Sleep: Idle
Ani Dying: Idle
Ani Dead: Dead
Ani Victory: Idle
Ani Escape: Idle
Replace Sprite
</DragonBone Settings>
<AI Level: 120>
<AI Priority>
HP% param <= 70%: Guard, Lowest HP%
</AI Priority>
With this code this problem occures:


When ı delete the A.I code and make the enemy note like this no problem occured:
<DragonBone Settings>
Battler: BladeMaster
Scalex: -0.77
Scaley: 0.77
Width: 420
Height: 433
Ani Wait: Idle
Ani Walk: Idle
Ani Attack: Attack A
Ani Swing: Attack B
Ani Thrust: Attack C
Ani Missile: Attack A
Ani Skill: Attack A
Ani Chant: Idle
Ani Spell: Attack A
Ani Item: Attack A
Ani Guard: Guard
Ani Evade: Idle
Ani Damage: Damage
Ani Abnormal: Idle
Ani Sleep: Idle
Ani Dying: Idle
Ani Dead: Dead
Ani Victory: Idle
Ani Escape: Idle
Replace Sprite
</DragonBone Settings>

Will you help me pls?Thank you in advance
NOTE: THİS PROBLEM BEGİNS WHEN I START THE BATTLE INSTANTLY.