feat: Forcefield loses 2% durability each time it repulses an enemy or a projectile
This commit is contained in:
@@ -167,6 +167,7 @@ public class EntityForcefield extends EntityMagicConstruct implements ICustomHit
|
|||||||
if(target instanceof EntityPlayerMP){
|
if(target instanceof EntityPlayerMP){
|
||||||
((EntityPlayerMP)target).connection.sendPacket(new SPacketEntityVelocity(target));
|
((EntityPlayerMP)target).connection.sendPacket(new SPacketEntityVelocity(target));
|
||||||
}
|
}
|
||||||
|
this.lifetime = (int) (lifetime * 0.92);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user