v0.5.0: evil eye deathgaze is now visible in more cases
This commit is contained in:
parent
f4484618c2
commit
dc4f3ebfea
|
@ -133,7 +133,7 @@ public class Eye extends Mob {
|
|||
|
||||
spend( attackDelay() );
|
||||
|
||||
if (Dungeon.visible[pos]) {
|
||||
if (Dungeon.visible[pos] || Dungeon.visible[beam.collisionPos] ) {
|
||||
sprite.zap( beam.collisionPos );
|
||||
return false;
|
||||
} else {
|
||||
|
|
|
@ -104,12 +104,10 @@ public class EyeSprite extends MobSprite {
|
|||
super.onComplete( anim );
|
||||
|
||||
if (anim == zap) {
|
||||
if (Dungeon.visible[ch.pos] || Dungeon.visible[zapPos]) {
|
||||
if (Actor.findChar(zapPos) != null){
|
||||
parent.add(new Beam.DeathRay(center(), Actor.findChar(zapPos).sprite.center()));
|
||||
} else {
|
||||
parent.add(new Beam.DeathRay(center(), DungeonTilemap.raisedTileCenterToWorld(zapPos)));
|
||||
}
|
||||
if (Actor.findChar(zapPos) != null){
|
||||
parent.add(new Beam.DeathRay(center(), Actor.findChar(zapPos).sprite.center()));
|
||||
} else {
|
||||
parent.add(new Beam.DeathRay(center(), DungeonTilemap.raisedTileCenterToWorld(zapPos)));
|
||||
}
|
||||
((Eye)ch).deathGaze();
|
||||
ch.next();
|
||||
|
|
Loading…
Reference in New Issue
Block a user