v2.0.0: fixed some armor abilities not checking Hero FOV
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public class Ratmogrify extends ArmorAbility {
|
|||||||
|
|
||||||
Char ch = Actor.findChar(target);
|
Char ch = Actor.findChar(target);
|
||||||
|
|
||||||
if (ch == null) {
|
if (ch == null || !Dungeon.level.heroFOV[target]) {
|
||||||
GLog.w(Messages.get(this, "no_target"));
|
GLog.w(Messages.get(this, "no_target"));
|
||||||
return;
|
return;
|
||||||
} else if (ch == hero){
|
} else if (ch == hero){
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ public class SpectralBlades extends ArmorAbility {
|
|||||||
|
|
||||||
Char enemy = findChar(b, hero, 2*hero.pointsInTalent(Talent.PROJECTING_BLADES), targets);
|
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"));
|
GLog.w(Messages.get(this, "no_target"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -78,7 +78,7 @@ public class DeathMark extends ArmorAbility {
|
|||||||
|
|
||||||
Char ch = Actor.findChar(target);
|
Char ch = Actor.findChar(target);
|
||||||
|
|
||||||
if (ch == null){
|
if (ch == null || !Dungeon.level.heroFOV[target]){
|
||||||
GLog.w(Messages.get(this, "no_target"));
|
GLog.w(Messages.get(this, "no_target"));
|
||||||
return;
|
return;
|
||||||
} else if (ch.alignment != Char.Alignment.ENEMY){
|
} else if (ch.alignment != Char.Alignment.ENEMY){
|
||||||
|
|||||||
Reference in New Issue
Block a user