v0.5.0: fixed an exploit involving the multiplicity curse and thieves
This commit is contained in:
parent
8064b4ee37
commit
5a53c619b3
|
@ -27,6 +27,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Bestiary;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Thief;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.MirrorImage;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation;
|
||||
|
@ -73,6 +74,12 @@ public class Multiplicity extends Armor.Glyph {
|
|||
attacker.storeInBundle(store);
|
||||
m.restoreFromBundle(store);
|
||||
m.HP = m.HT;
|
||||
|
||||
//If a thief has stolen an item, that item is not duplicated.
|
||||
if (m instanceof Thief){
|
||||
((Thief) m).item = null;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
ShatteredPixelDungeon.reportException(e);
|
||||
m = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user