public bool InRange(Combatant user, Combatant target)
{
bool ok = true;
if(DataHolder.BattleSystem().IsRealTime() &&
user != null && target != null &&
user.prefabInstance != null &&
target.prefabInstance != null)
{
Vector3 v1 = user.prefabInstance.transform.position;
if(this.ignoreYDistance) v1.y = target.prefabInstance.transform.position.y;
ok = this.InRange(Vector3.Distance(v1,
target.prefabInstance.transform.position));
}
return ok;
}