v2.5.3: fixed wards not being targetable when inside solid terrain
This commit is contained in:
committed by
Evan Debenham
parent
789ca665c3
commit
15eb83aa5e
@@ -121,11 +121,7 @@ public class WandOfWarding extends Wand {
|
||||
}
|
||||
}
|
||||
|
||||
if (!Dungeon.level.passable[target]){
|
||||
GLog.w( Messages.get(this, "bad_location"));
|
||||
Dungeon.level.pressCell(target);
|
||||
|
||||
} else if (ch != null){
|
||||
if (ch != null){
|
||||
if (ch instanceof Ward){
|
||||
if (wardAvailable) {
|
||||
((Ward) ch).upgrade( buffedLvl() );
|
||||
@@ -138,6 +134,10 @@ public class WandOfWarding extends Wand {
|
||||
Dungeon.level.pressCell(target);
|
||||
}
|
||||
|
||||
} else if (!Dungeon.level.passable[target]){
|
||||
GLog.w( Messages.get(this, "bad_location"));
|
||||
Dungeon.level.pressCell(target);
|
||||
|
||||
} else {
|
||||
Ward ward = new Ward();
|
||||
ward.pos = target;
|
||||
|
||||
Reference in New Issue
Block a user