v3.0.0: fixed downed crystal guardians not showing dmg type
This commit is contained in:
+2
-1
@@ -118,7 +118,8 @@ public class CrystalGuardian extends Mob{
|
|||||||
@Override
|
@Override
|
||||||
public int defenseProc(Char enemy, int damage) {
|
public int defenseProc(Char enemy, int damage) {
|
||||||
if (recovering){
|
if (recovering){
|
||||||
sprite.showStatus(CharSprite.NEGATIVE, Integer.toString(damage));
|
//this triggers before blocking, so the dmg as block-bypassing
|
||||||
|
sprite.showStatusWithIcon(CharSprite.NEGATIVE, Integer.toString(damage), FloatingText.PHYS_DMG_NO_BLOCK);
|
||||||
HP = Math.max(1, HP-damage);
|
HP = Math.max(1, HP-damage);
|
||||||
damage = -1;
|
damage = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user