V0.2.0: Corrected some misc. item buff detach logic
This commit is contained in:
@@ -160,8 +160,8 @@ public class Ring extends KindofMisc {
|
||||
hero.belongings.misc2 = null;
|
||||
}
|
||||
|
||||
hero.remove( buff );
|
||||
buff = null;
|
||||
buff.detach();
|
||||
buff = null;
|
||||
|
||||
hero.spendAndNext( TIME_TO_EQUIP );
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ public class RingOfMight extends Ring {
|
||||
if (level > 0){
|
||||
target.HT -= level*5;
|
||||
}
|
||||
super.detach();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user