v0.3.0a: fixed a crash bug with poison and loading a save
This commit is contained in:
parent
6f6cba893b
commit
e794cfe5a1
|
@ -77,7 +77,7 @@ public class Poison extends Buff implements Hero.Doom {
|
|||
|
||||
@Override
|
||||
public boolean attachTo(Char target) {
|
||||
if (super.attachTo(target)){
|
||||
if (super.attachTo(target) && target.sprite != null){
|
||||
CellEmitter.center(target.pos).burst( PoisonParticle.SPLASH, 5 );
|
||||
return true;
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue
Block a user