v0.2.4: corrected a bug with fire elemental

This commit is contained in:
Evan Debenham 2015-02-20 00:06:12 -05:00
parent 567be8dfbf
commit 08eb07634d
2 changed files with 6 additions and 6 deletions

View File

@ -39,8 +39,8 @@ public class Buff extends Actor {
this.target = target;
target.add( this );
return true;
return target.buffs().contains(this);
}
public void detach() {

View File

@ -80,14 +80,14 @@ public class Elemental extends Mob {
HP++;
sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
}
} else {
if (buff instanceof Frost) {
} else if (buff instanceof Frost) {
if (Level.water[this.pos])
damage( Random.NormalIntRange( HT / 2, HT ), buff );
else
damage( Random.NormalIntRange( 1, HT * 2 / 3 ), buff );
}
}
} else {
super.add( buff );
}
}
@Override