v0.6.0: splashing potions at your location now cleanses ooze
This commit is contained in:
parent
8548392317
commit
6a567e2fbe
|
@ -29,6 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Ooze;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
|
@ -312,6 +313,7 @@ public class Potion extends Item {
|
|||
Char ch = Actor.findChar(cell);
|
||||
if (ch != null) {
|
||||
Buff.detach(ch, Burning.class);
|
||||
Buff.detach(ch, Ooze.class);
|
||||
Splash.at( ch.sprite.center(), color, 5 );
|
||||
} else {
|
||||
Splash.at( cell, color, 5 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user