diff --git a/logic/Gaming/AttackManager.cs b/logic/Gaming/AttackManager.cs index d220a500..23cdab9e 100755 --- a/logic/Gaming/AttackManager.cs +++ b/logic/Gaming/AttackManager.cs @@ -106,7 +106,7 @@ private void BombObj(Bullet bullet, GameObj objBeingShot) } break; case GameObjType.Wormhole: - var previousHP = ((WormholeCell)objBeingShot).Wormhole.HP; + var previousHP = ((WormholeCell)objBeingShot).Wormhole.HP.GetValue(); ((WormholeCell)objBeingShot).Wormhole.BeAttacked(bullet); if (previousHP >= GameData.WormholeHP / 2 && ((WormholeCell)objBeingShot).Wormhole.HP < GameData.WormholeHP / 2) {