V0.2.0: Corrected some misc. item buff detach logic

This commit is contained in:
Evan Debenham 2014-09-14 04:36:05 -04:00
parent 827bbac105
commit f4e5060041
4 changed files with 5 additions and 3 deletions

View File

@ -105,7 +105,7 @@ public class Artifact extends KindofMisc {
hero.belongings.misc2 = null; hero.belongings.misc2 = null;
} }
hero.remove(passiveBuff); passiveBuff.detach();
passiveBuff = null; passiveBuff = null;
hero.spendAndNext( TIME_TO_EQUIP ); hero.spendAndNext( TIME_TO_EQUIP );

View File

@ -118,6 +118,7 @@ public class CapeOfThorns extends Artifact {
public void detach(){ public void detach(){
timer = 0; timer = 0;
charge = 0; charge = 0;
super.detach();
} }
} }

View File

@ -160,7 +160,7 @@ public class Ring extends KindofMisc {
hero.belongings.misc2 = null; hero.belongings.misc2 = null;
} }
hero.remove( buff ); buff.detach();
buff = null; buff = null;
hero.spendAndNext( TIME_TO_EQUIP ); hero.spendAndNext( TIME_TO_EQUIP );

View File

@ -49,6 +49,7 @@ public class RingOfMight extends Ring {
if (level > 0){ if (level > 0){
target.HT -= level*5; target.HT -= level*5;
} }
super.detach();
} }
} }
} }