v2.0.0: fixed some armor abilities not checking Hero FOV

This commit is contained in:
Evan Debenham
2023-01-29 15:25:04 -05:00
parent 0e36470496
commit 3a799c142a
3 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ public class Ratmogrify extends ArmorAbility {
Char ch = Actor.findChar(target);
if (ch == null) {
if (ch == null || !Dungeon.level.heroFOV[target]) {
GLog.w(Messages.get(this, "no_target"));
return;
} else if (ch == hero){

View File

@@ -69,7 +69,7 @@ public class SpectralBlades extends ArmorAbility {
Char enemy = findChar(b, hero, 2*hero.pointsInTalent(Talent.PROJECTING_BLADES), targets);
if (enemy == null){
if (enemy == null || !hero.fieldOfView[enemy.pos]){
GLog.w(Messages.get(this, "no_target"));
return;
}

View File

@@ -78,7 +78,7 @@ public class DeathMark extends ArmorAbility {
Char ch = Actor.findChar(target);
if (ch == null){
if (ch == null || !Dungeon.level.heroFOV[target]){
GLog.w(Messages.get(this, "no_target"));
return;
} else if (ch.alignment != Char.Alignment.ENEMY){