v0.9.3: fixed spirit hawk not respecting attack speed boosts
This commit is contained in:
parent
3b2aced50c
commit
ad28843d98
|
@ -141,6 +141,7 @@ public class SpiritHawk extends ArmorAbility {
|
||||||
|
|
||||||
flying = true;
|
flying = true;
|
||||||
viewDistance = (int)GameMath.gate(6, 6+Dungeon.hero.pointsInTalent(Talent.EAGLE_EYE), 8);
|
viewDistance = (int)GameMath.gate(6, 6+Dungeon.hero.pointsInTalent(Talent.EAGLE_EYE), 8);
|
||||||
|
baseSpeed = 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f;
|
||||||
attacksAutomatically = false;
|
attacksAutomatically = false;
|
||||||
|
|
||||||
immunities.addAll(new BlobImmunity().immunities());
|
immunities.addAll(new BlobImmunity().immunities());
|
||||||
|
@ -181,17 +182,13 @@ public class SpiritHawk extends ArmorAbility {
|
||||||
@Override
|
@Override
|
||||||
protected boolean act() {
|
protected boolean act() {
|
||||||
viewDistance = (int)GameMath.gate(6, 6+Dungeon.hero.pointsInTalent(Talent.EAGLE_EYE), 8);
|
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();
|
boolean result = super.act();
|
||||||
Dungeon.level.updateFieldOfView( this, fieldOfView );
|
Dungeon.level.updateFieldOfView( this, fieldOfView );
|
||||||
GameScene.updateFog(pos, viewDistance+(int)Math.ceil(speed()));
|
GameScene.updateFog(pos, viewDistance+(int)Math.ceil(speed()));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public float speed() {
|
|
||||||
return 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void spend(float time) {
|
protected void spend(float time) {
|
||||||
super.spend(time);
|
super.spend(time);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user