v2.0.0: fixed some armor abilities not checking Hero FOV
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user