Fix #225 and some other uses of a.IsInWorld / a.IsDead()
This commit is contained in:
@@ -140,6 +140,8 @@ namespace OpenRA.Traits
|
||||
{
|
||||
public static bool IsDead(this Actor self)
|
||||
{
|
||||
if (self.Destroyed) return true;
|
||||
|
||||
var health = self.TraitOrDefault<Health>();
|
||||
return (health == null) ? true : health.IsDead;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user