From 1a26a1bf63c12e6fdce0df0cfa5f7785a4d2eafc Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 14 Nov 2019 12:28:35 -0500 Subject: [PATCH] Update CoreBlock.java --- .../anuke/mindustry/world/blocks/storage/CoreBlock.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/io/anuke/mindustry/world/blocks/storage/CoreBlock.java b/core/src/io/anuke/mindustry/world/blocks/storage/CoreBlock.java index 09552c2bef..a917cf9b9c 100644 --- a/core/src/io/anuke/mindustry/world/blocks/storage/CoreBlock.java +++ b/core/src/io/anuke/mindustry/world/blocks/storage/CoreBlock.java @@ -130,6 +130,14 @@ public class CoreBlock extends StorageBlock{ return tile.entity instanceof StorageBlockEntity; } + @Override + public float handleDamage(Tile tile, float amount){ + it(player != null && tile.getTeam() == player.getTeam()){ + Events.fire(Trigger.teamCoreDamage); + } + return amount; + } + @Override public boolean canBreak(Tile tile){ return false;