diff --git a/logic/GameClass/GameObj/Areas/Construction.cs b/logic/GameClass/GameObj/Areas/Construction.cs index 217764df..56bf2a48 100755 --- a/logic/GameClass/GameObj/Areas/Construction.cs +++ b/logic/GameClass/GameObj/Areas/Construction.cs @@ -63,16 +63,17 @@ public bool Construct(int constructSpeed, ConstructionType constructionType, Shi } public bool BeAttacked(Bullet bullet) { + var previousActivated = IsActivated.Get(); if (bullet!.Parent!.TeamID != TeamID) { long subHP = bullet.AP; HP.SubPositiveV(subHP); } - if (HP == 0) + if (HP.IsBelowMaxTimes(0.5)) { IsActivated.Set(false); } - return HP.IsBelowMaxTimes(0.5); + return HP.IsBelowMaxTimes(0.5) && previousActivated; } public void AddConstructNum(int add = 1) {