v2.0.2: fixed cases of lunge still atking after moving onto a tele trap
This commit is contained in:
@@ -114,7 +114,7 @@ public class Rapier extends MeleeWeapon {
|
||||
hero.pos = dest;
|
||||
Dungeon.level.occupyCell(hero);
|
||||
|
||||
if (enemy != null) {
|
||||
if (enemy != null && hero.canAttack(enemy)) {
|
||||
hero.sprite.attack(enemy.pos, new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
|
||||
Reference in New Issue
Block a user