v1.4.1: fixed rare cases of being able to self-target with cursed wands
This commit is contained in:
@@ -548,7 +548,8 @@ public abstract class Wand extends Item {
|
||||
}
|
||||
|
||||
public int collisionProperties(int target){
|
||||
return collisionProperties;
|
||||
if (cursed) return Ballistica.MAGIC_BOLT;
|
||||
else return collisionProperties;
|
||||
}
|
||||
|
||||
public static class PlaceHolder extends Wand {
|
||||
|
||||
@@ -60,8 +60,8 @@ public class WandOfWarding extends Wand {
|
||||
|
||||
@Override
|
||||
public int collisionProperties(int target) {
|
||||
if (Dungeon.level.heroFOV[target]) return Ballistica.STOP_TARGET;
|
||||
else return Ballistica.PROJECTILE;
|
||||
if (cursed || !Dungeon.level.heroFOV[target]) return Ballistica.PROJECTILE;
|
||||
else return Ballistica.STOP_TARGET;
|
||||
}
|
||||
|
||||
private boolean wardAvailable = true;
|
||||
|
||||
Reference in New Issue
Block a user