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