Forewarner of the Black Wind
- Jul 2, 2014
- Reaction score
- First Language
- Primarily Uses
See, that's what we needed as soon as your first conditional didn't resolve the way you thought it should.I changed the conditional, and the following happens: neither the enemies nor the actors do nothing, until one of the actors actually selects as target an enemy with State 28, in that case the condition is checked but returns false (as if the target didn't have State 28). From that point on, enemies start to attack but the conditional is always false. Here's the console:
So the only way I can think of for that code to be looking at an undefined target is if the BattleManager.actor check is not doing what I think it ought to, which is return undefined when it's an enemy battler turn.
BattleManager.actor().isActor()for the first part of your conditional, instead of just