- Apr 22, 2012
- Reaction score
- First Language
- Primarily Uses
battler.isActor() should be the thing to do it.
In my Counter System, I need to differentiate between normal units and actual Player units
So I use
If you need friendly units
TBSAiManager.prototype.isAlly(entity) will be your go-to
I altered these functions myself when I fixed the "charmed" thing.
That was a nightmare to fix and I had to edit many Lecode Functions.