Use EffectiveOwner for actor tooltips.

This commit is contained in:
Paul Chote
2018-02-03 15:14:45 +00:00
committed by abcdefg30
parent 2fccfdf1ee
commit 8174d0e69a

View File

@@ -77,7 +77,14 @@ namespace OpenRA.Mods.Common.Traits
readonly TooltipInfo info;
public ITooltipInfo TooltipInfo { get { return info; } }
public Player Owner { get { return self.Owner; } }
public Player Owner
{
get
{
return self.EffectiveOwner != null ? self.EffectiveOwner.Owner : self.Owner;
}
}
public Tooltip(Actor self, TooltipInfo info)
: base(info)