power tracks damaged/destroyed correctly
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class Building : ITick, INotifyBuildComplete
|
||||
class Building : ITick
|
||||
{
|
||||
public readonly BuildingInfo unitInfo;
|
||||
|
||||
@@ -19,11 +19,5 @@ namespace OpenRa.Game.Traits
|
||||
|
||||
first = false;
|
||||
}
|
||||
|
||||
public void BuildingComplete(Actor self)
|
||||
{
|
||||
if (self.Owner != null)
|
||||
self.Owner.ChangePower(unitInfo.Power);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user