|
@@ -316,6 +316,7 @@ namespace XmdsCommonServer.Plugin.Units
|
|
|
InstanceUnit min = null;
|
|
|
float min_len = float.MaxValue;
|
|
|
bool isSpecial = false;
|
|
|
+ bool iamSpecial = Info.Properties is XmdsUnitProperties myprop && myprop.GameStatusType > XmdsUnitProperties.StatusType.Normal;
|
|
|
float guardRangSqua = mGuardRange * mGuardRange;
|
|
|
Parent.ForEachNearObjects(this.X, this.Y, this.Info.GuardRange, (InstanceUnit u, ref bool cancel) =>
|
|
|
{
|
|
@@ -330,7 +331,7 @@ namespace XmdsCommonServer.Plugin.Units
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (u.Info.Properties is XmdsUnitProperties prop && prop.GameStatusType > XmdsUnitProperties.StatusType.Normal)
|
|
|
+ if (iamSpecial && u.Info.Properties is XmdsUnitProperties prop && prop.GameStatusType > XmdsUnitProperties.StatusType.Normal)
|
|
|
{
|
|
|
if (isSpecial)
|
|
|
{
|