Skip to content

Commit

Permalink
Merge pull request #395 from Panxuc/dev
Browse files Browse the repository at this point in the history
fix: 🐛 wormhole do not kill
  • Loading branch information
hhzzff authored May 23, 2024
2 parents af2639e + b5761be commit fc29e38
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 fc29e38

Please sign in to comment.