v0.9.3a: adjusted when the spirit hawk dies to to timer expiry
This commit is contained in:
parent
14c888a2e7
commit
ef256e53eb
|
@ -186,6 +186,10 @@ public class SpiritHawk extends ArmorAbility {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean act() {
|
protected boolean act() {
|
||||||
|
if (timeRemaining <= 0){
|
||||||
|
die(null);
|
||||||
|
return 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;
|
baseSpeed = 2f + Dungeon.hero.pointsInTalent(Talent.SWIFT_SPIRIT)/2f;
|
||||||
boolean result = super.act();
|
boolean result = super.act();
|
||||||
|
@ -198,9 +202,6 @@ public class SpiritHawk extends ArmorAbility {
|
||||||
protected void spend(float time) {
|
protected void spend(float time) {
|
||||||
super.spend(time);
|
super.spend(time);
|
||||||
timeRemaining -= time;
|
timeRemaining -= time;
|
||||||
if (timeRemaining <= 0){
|
|
||||||
die(null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user