v0.3.0: modified pushing to work in sync.

This commit is contained in:
Evan Debenham 2015-05-06 23:48:06 -04:00
parent bfe6f1c01a
commit fb70f27695

View File

@ -45,13 +45,17 @@ public class Pushing extends Actor {
if (effect == null) {
new Effect();
}
return false;
} else {
}
Actor.remove( Pushing.this );
//so that all pushing effects at the same time go simultaneously
for ( Actor actor : Actor.all() ){
if (actor instanceof Pushing && ((Pushing) actor).cooldown() == 0)
return true;
}
return false;
}
public class Effect extends Visual {