|
|
|
@ -193,7 +193,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
|
|
|
|
if(temp.getType() == 2 && !temp.isTargetsPlayer()){
|
|
|
|
if(temp.getType() == 2 && !temp.isTargetsPlayer()){
|
|
|
|
for(int j = 0; j < gs.entitySprites.length; j++){
|
|
|
|
for(int j = 0; j < gs.entitySprites.length; j++){
|
|
|
|
if(i != j){
|
|
|
|
if(i != j){
|
|
|
|
if(d.getCurrentEntities()[j] != null && d.getCurrentEntities()[j].getType() != 2){
|
|
|
|
if(d.getCurrentEntities()[j] != null && d.getCurrentEntities()[j].getType() != 2 && !d.getCurrentEntities()[j].getToDelete()){
|
|
|
|
if(Intersector.overlaps(tempObject.getFullCollisionSprite(), gs.entitySprites[j].getFullCollisionSprite())){
|
|
|
|
if(Intersector.overlaps(tempObject.getFullCollisionSprite(), gs.entitySprites[j].getFullCollisionSprite())){
|
|
|
|
delete = true;
|
|
|
|
delete = true;
|
|
|
|
boolean isDead = d.getCurrentEntities()[i].attack(d.getCurrentEntities()[j]);
|
|
|
|
boolean isDead = d.getCurrentEntities()[i].attack(d.getCurrentEntities()[j]);
|
|
|
|
|