Fixed lancer turning incorrectly / Buffed lancer

This commit is contained in:
Anuken
2018-08-26 20:02:29 -04:00
parent 2677c0e752
commit 9059238aee
4 changed files with 31 additions and 6 deletions
@@ -88,7 +88,7 @@ public class Damage{
tr.trns(angle, length);
world.raycastEachWorld(x, y, x + tr.x, y + tr.y, (cx, cy) -> {
Tile tile = world.tile(cx, cy);
if(tile != null && tile.entity != null && tile.entity.collide(hitter)){
if(tile != null && tile.entity != null && tile.target().getTeamID() != team.ordinal() && tile.entity.collide(hitter)){
tile.entity.collision(hitter);
Effects.effect(effect, tile.worldx(), tile.worldy());
}