v1.2.0: fixed player being able to self-target with prep blink
This commit is contained in:
parent
3f960088d0
commit
8b4b3686cd
|
@ -267,7 +267,7 @@ public class Preparation extends Buff implements ActionIndicator.Action {
|
||||||
public void onSelect(Integer cell) {
|
public void onSelect(Integer cell) {
|
||||||
if (cell == null) return;
|
if (cell == null) return;
|
||||||
final Char enemy = Actor.findChar( cell );
|
final Char enemy = Actor.findChar( cell );
|
||||||
if (enemy == null || Dungeon.hero.isCharmedBy(enemy) || enemy instanceof NPC || !Dungeon.level.heroFOV[cell]){
|
if (enemy == null || Dungeon.hero.isCharmedBy(enemy) || enemy instanceof NPC || !Dungeon.level.heroFOV[cell] || enemy == Dungeon.hero){
|
||||||
GLog.w(Messages.get(Preparation.class, "no_target"));
|
GLog.w(Messages.get(Preparation.class, "no_target"));
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user