v0.2.4: corrected a bug with fire elemental
This commit is contained in:
parent
567be8dfbf
commit
08eb07634d
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user