This commit is contained in:
Anuken
2020-12-22 11:20:35 -05:00
parent 24c71e49c7
commit 17177f87aa
2 changed files with 16 additions and 6 deletions

View File

@@ -51,11 +51,7 @@ abstract class HealthComp implements Entityc, Posc{
/** Damage and pierce armor. */
void damagePierce(float amount, boolean withEffect){
if(this instanceof Shieldc c){
damage(amount + c.armor(), withEffect);
}else{
damage(amount, withEffect);
}
damage(amount, withEffect);
}
/** Damage and pierce armor. */