package com.ezardlabs.lostsector.objects.projectiles;

import com.ezardlabs.dethsquare.Collider;
import com.ezardlabs.dethsquare.GameObject;
import com.ezardlabs.dethsquare.Script;
import com.ezardlabs.lostsector.objects.warframes.Warframe;

public class Laser extends Script {

	@Override
	public void start() {
		gameObject.setTag("projectile");
	}

	@Override
	public void update() {
		transform.translate(gameObject.renderer.hFlipped ? -15 : 15, 0);
		if (transform.position.x <= 0) GameObject.destroy(gameObject);
	}
	@Override
	public void onTriggerEnter(Collider other) {
		if (other.gameObject.getTag() != null) {
			if (other.gameObject.getTag().equals("player")) {
				//noinspection ConstantConditions
				((Warframe) other.gameObject.getComponentOfType(Warframe.class)).removeHealth(10);
				gameObject.removeComponent(Collider.class);
				GameObject.destroy(gameObject);
			} else if (other.gameObject.getTag().equals("solid")) {
				gameObject.removeComponent(Collider.class);
				GameObject.destroy(gameObject);
			}
		}
	}
}

@@ -515,16 +515,18 @@
 ct);%0A%09%7D%0A
+%09%0A
 %09@Overri
@@ -716,20 +716,8 @@
 %09%09%09%09
-((Warframe) 
 othe
@@ -763,17 +763,16 @@
 e.class)
-)
 .removeH

Remove redundant cast