feat: Forcefield loses 2% durability each time it repulses an enemy or a projectile

This commit is contained in:
WinDanesz
2022-06-22 22:38:54 +02:00
parent ad1e5d555a
commit 3d30b0b96f
@@ -167,6 +167,7 @@ public class EntityForcefield extends EntityMagicConstruct implements ICustomHit
if(target instanceof EntityPlayerMP){
((EntityPlayerMP)target).connection.sendPacket(new SPacketEntityVelocity(target));
}
this.lifetime = (int) (lifetime * 0.92);
}else{