Skip to content

Commit

Permalink
fix: 🐛 wormhole do not kill
Browse files Browse the repository at this point in the history
  • Loading branch information
panxuc committed May 23, 2024
1 parent af2639e commit b5761be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/Gaming/AttackManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b5761be

Please sign in to comment.