v2.3.0: fixed new shielding text not appearing in two cases

This commit is contained in:
Evan Debenham
2023-12-11 13:10:50 -05:00
parent 076e13ee08
commit 4500f2b877
2 changed files with 4 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Monk;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Snake;
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
import com.shatteredpixel.shatteredpixeldungeon.effects.CheckedCell;
import com.shatteredpixel.shatteredpixeldungeon.effects.FloatingText;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
import com.shatteredpixel.shatteredpixeldungeon.effects.SpellSprite;
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
@@ -1310,7 +1311,9 @@ public class Hero extends Char {
&& buff(Talent.AggressiveBarrierCooldown.class) == null
&& (HP / (float)HT) < 0.20f*(1+pointsInTalent(Talent.AGGRESSIVE_BARRIER))){
Buff.affect(this, Barrier.class).setShield(3);
sprite.showStatusWithIcon(CharSprite.POSITIVE, "3", FloatingText.SHIELDING);
Buff.affect(this, Talent.AggressiveBarrierCooldown.class, 50f);
}
sprite.attack( enemy.pos );

View File

@@ -113,6 +113,7 @@ public class WandOfTransfusion extends Wand {
//grant a self-shield, and...
Buff.affect(curUser, Barrier.class).setShield((5 + buffedLvl()));
curUser.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(5+buffedLvl()), FloatingText.SHIELDING);
//charms living enemies
if (!ch.properties().contains(Char.Property.UNDEAD)) {