v0.2.3: more implementation on hourglass

This commit is contained in:
Evan Debenham
2014-12-05 03:25:58 -05:00
parent 9a5f13b656
commit 3d55729861
3 changed files with 74 additions and 3 deletions
@@ -254,6 +254,7 @@ public class Hero extends Char {
rangedWeapon = wep;
boolean result = attack( enemy );
Invisibility.dispel();
rangedWeapon = null;
return result;
@@ -378,7 +379,9 @@ public class Hero extends Char {
@Override
public void spend( float time ) {
super.spend( time );
TimekeepersHourglass.timeFreeze buff = buff(TimekeepersHourglass.timeFreeze.class);
if (!(buff != null && buff.processTime(time)))
super.spend( time );
};
public void spendAndNext( float time ) {