Actor properties consistency improved
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
|
||||
public void Tick(World world)
|
||||
{
|
||||
if (!a.IsInWorld || a.IsDead() || !a.Trait<CanPowerDown>().Disabled)
|
||||
if (!a.IsInWorld || a.IsDead || !a.Trait<CanPowerDown>().Disabled)
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
|
||||
anim.Tick();
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
circles.Play("circles");
|
||||
}
|
||||
|
||||
if (!building.IsInWorld || building.IsDead())
|
||||
if (!building.IsInWorld || building.IsDead)
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace OpenRA.Mods.Common.Power
|
||||
{
|
||||
var actors = self.World.ActorsWithTrait<AffectedByPowerOutage>()
|
||||
.Select(tp => tp.Actor)
|
||||
.Where(a => !a.IsDead() && a.IsInWorld && a.Owner == self.Owner);
|
||||
.Where(a => !a.IsDead && a.IsInWorld && a.Owner == self.Owner);
|
||||
|
||||
UpdateActors(actors);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common
|
||||
{
|
||||
if (claim.Claimer.Destroyed) return;
|
||||
if (!claim.Claimer.IsInWorld) return;
|
||||
if (claim.Claimer.IsDead()) return;
|
||||
if (claim.Claimer.IsDead) return;
|
||||
|
||||
claim.Claimer.Trait<INotifyResourceClaimLost>().OnNotifyResourceClaimLost(claim.Claimer, claim, claimer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user