From ad28843d98a82013a4c239df86bec97ca6f38640 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 31 May 2021 22:06:01 -0400 Subject: [PATCH] v0.9.3: fixed spirit hawk not respecting attack speed boosts --- .../actors/hero/abilities/huntress/SpiritHawk.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/huntress/SpiritHawk.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/huntress/SpiritHawk.java index e985115b0..749b84fd8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/huntress/SpiritHawk.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/huntress/SpiritHawk.java @@ -141,6 +141,7 @@ public class SpiritHawk extends ArmorAbility { flying = true; viewDistance = (int)GameMath.gate(6, 6+Dungeon.hero.pointsInTalent(Talent.EAGLE_EYE), 8); + baseSpeed = 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f; attacksAutomatically = false; immunities.addAll(new BlobImmunity().immunities()); @@ -181,17 +182,13 @@ public class SpiritHawk extends ArmorAbility { @Override protected boolean act() { viewDistance = (int)GameMath.gate(6, 6+Dungeon.hero.pointsInTalent(Talent.EAGLE_EYE), 8); + baseSpeed = 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f; boolean result = super.act(); Dungeon.level.updateFieldOfView( this, fieldOfView ); GameScene.updateFog(pos, viewDistance+(int)Math.ceil(speed())); return result; } - @Override - public float speed() { - return 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f; - } - @Override protected void spend(float time) { super.spend(time);