v1.4.0: resting now triggers the hold fast talent
This commit is contained in:
@@ -1143,10 +1143,10 @@ public class Hero extends Char {
|
|||||||
|
|
||||||
public void rest( boolean fullRest ) {
|
public void rest( boolean fullRest ) {
|
||||||
spendAndNextConstant( TIME_TO_REST );
|
spendAndNextConstant( TIME_TO_REST );
|
||||||
|
if (hasTalent(Talent.HOLD_FAST)){
|
||||||
|
Buff.affect(this, HoldFast.class);
|
||||||
|
}
|
||||||
if (!fullRest) {
|
if (!fullRest) {
|
||||||
if (hasTalent(Talent.HOLD_FAST)){
|
|
||||||
Buff.affect(this, HoldFast.class);
|
|
||||||
}
|
|
||||||
if (sprite != null) {
|
if (sprite != null) {
|
||||||
sprite.showStatus(CharSprite.DEFAULT, Messages.get(this, "wait"));
|
sprite.showStatus(CharSprite.DEFAULT, Messages.get(this, "wait"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user