v0.3.0c: fixed boss arena manipulation with ethereal chains

This commit is contained in:
Evan Debenham 2015-06-03 11:36:22 -04:00 committed by Evan Debenham
parent d7a1c38606
commit da94f03610

View File

@ -70,7 +70,12 @@ public class EtherealChains extends Artifact {
@Override
public void onSelect(Integer target) {
if (target != null && (Dungeon.level.visited[target] || Dungeon.level.mapped[target])){
final Ballistica chain = new Ballistica(curUser.pos, target, Ballistica.STOP_CHARS | Ballistica.STOP_TARGET);
//ballistica does not go through walls on pre-rework boss arenas
int missileProperties = (Dungeon.depth == 10 || Dungeon.depth == 15 || Dungeon.depth == 20 || Dungeon.depth == 25) ?
Ballistica.PROJECTILE : Ballistica.STOP_CHARS | Ballistica.STOP_TARGET;
final Ballistica chain = new Ballistica(curUser.pos, target, missileProperties);
//determine if we're grabbing an enemy, pulling to a location, or doing nothing.
if (Actor.findChar( chain.collisionPos ) != null){