v2.0.0: fixed ripper demon leap being unable to be blocked

This commit is contained in:
Evan Debenham
2023-02-09 17:32:15 -05:00
parent 7175bab0c1
commit e10fb89c22

View File

@@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing;
import com.shatteredpixel.shatteredpixeldungeon.effects.TargetedCell;
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.RipperSprite;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.noosa.audio.Sample;
@@ -175,9 +176,14 @@ public class RipperDemon extends Mob {
public void call() {
if (leapVictim != null && alignment != leapVictim.alignment){
Buff.affect(leapVictim, Bleeding.class).set(0.75f*damageRoll());
leapVictim.sprite.flash();
Sample.INSTANCE.play(Assets.Sounds.HIT);
if (hit(RipperDemon.this, leapVictim, Char.INFINITE_ACCURACY)) {
Buff.affect(leapVictim, Bleeding.class).set(0.75f * damageRoll());
leapVictim.sprite.flash();
Sample.INSTANCE.play(Assets.Sounds.HIT);
} else {
enemy.sprite.showStatus( CharSprite.NEUTRAL, enemy.defenseVerb() );
Sample.INSTANCE.play(Assets.Sounds.MISS);
}
}
if (endPos != leapPos){