v0.2.3: fixed an interaction bug between wand of telekinesis and shopkeepers
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.items.wands;
|
package com.shatteredpixel.shatteredpixeldungeon.items.wands;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Shopkeeper;
|
||||||
import com.watabou.noosa.audio.Sample;
|
import com.watabou.noosa.audio.Sample;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
@@ -80,6 +81,9 @@ public class WandOfTelekinesis extends Wand {
|
|||||||
ch.pos = next;
|
ch.pos = next;
|
||||||
Actor.freeCell( next );
|
Actor.freeCell( next );
|
||||||
|
|
||||||
|
if (ch instanceof Shopkeeper)
|
||||||
|
ch.damage( 0, this );
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
if (ch instanceof Mob) {
|
if (ch instanceof Mob) {
|
||||||
Dungeon.level.mobPress( (Mob)ch );
|
Dungeon.level.mobPress( (Mob)ch );
|
||||||
|
|||||||
Reference in New Issue
Block a user