Use already cached mobile in MobileProperties.Scatter
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
[Desc("Leave the current position in a random direction.")]
|
[Desc("Leave the current position in a random direction.")]
|
||||||
public void Scatter()
|
public void Scatter()
|
||||||
{
|
{
|
||||||
Self.Trait<Mobile>().Nudge(Self, Self, true);
|
mobile.Nudge(Self, Self, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptActorPropertyActivity]
|
[ScriptActorPropertyActivity]
|
||||||
|
|||||||
Reference in New Issue
Block a user