Bugfixes / Team access

This commit is contained in:
Anuken
2020-08-13 19:57:45 -04:00
parent c2f71e5788
commit 1d95980066
5 changed files with 7 additions and 4 deletions

View File

@@ -76,6 +76,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
if(sensor == LAccess.health) return health;
if(sensor == LAccess.x) return x;
if(sensor == LAccess.y) return y;
if(sensor == LAccess.team) return team.id;
if(sensor == LAccess.shooting) return isShooting() ? 1 : 0;
if(sensor == LAccess.shootX) return aimX();
if(sensor == LAccess.shootY) return aimY();