v2.3.0: fixed rapier lunge not always using rapier when checking range
This commit is contained in:
+2
@@ -111,6 +111,7 @@ public class Rapier extends MeleeWeapon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final int dest = lungeCell;
|
final int dest = lungeCell;
|
||||||
|
|
||||||
hero.busy();
|
hero.busy();
|
||||||
Sample.INSTANCE.play(Assets.Sounds.MISS);
|
Sample.INSTANCE.play(Assets.Sounds.MISS);
|
||||||
hero.sprite.jump(hero.pos, dest, 0, 0.1f, new Callback() {
|
hero.sprite.jump(hero.pos, dest, 0, 0.1f, new Callback() {
|
||||||
@@ -123,6 +124,7 @@ public class Rapier extends MeleeWeapon {
|
|||||||
Dungeon.level.occupyCell(hero);
|
Dungeon.level.occupyCell(hero);
|
||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
|
|
||||||
|
hero.belongings.abilityWeapon = wep; //set this early to we can check canAttack
|
||||||
if (enemy != null && hero.canAttack(enemy)) {
|
if (enemy != null && hero.canAttack(enemy)) {
|
||||||
hero.sprite.attack(enemy.pos, new Callback() {
|
hero.sprite.attack(enemy.pos, new Callback() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user