Make sandworms not eat infantry
This commit is contained in:
@@ -99,7 +99,8 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
targetCountdown = Info.TargetRescanInterval;
|
targetCountdown = Info.TargetRescanInterval;
|
||||||
|
|
||||||
// If close enough, we don't care about other actors.
|
// If close enough, we don't care about other actors.
|
||||||
var target = self.World.FindActorsInCircle(self.CenterPosition, Info.IgnoreNoiseAttackRange).FirstOrDefault(x => x.Info.HasTraitInfo<AttractsWormsInfo>());
|
var target = self.World.FindActorsInCircle(self.CenterPosition, Info.IgnoreNoiseAttackRange)
|
||||||
|
.FirstOrDefault(x => attackTrait.HasAnyValidWeapons(Target.FromActor(x)));
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
self.CancelActivity();
|
self.CancelActivity();
|
||||||
|
|||||||
@@ -563,10 +563,10 @@ Heal:
|
|||||||
|
|
||||||
WormJaw:
|
WormJaw:
|
||||||
ReloadDelay: 10
|
ReloadDelay: 10
|
||||||
InvalidTargets: Structure
|
InvalidTargets: Structure, Infantry
|
||||||
Range: 1c512
|
Range: 1c512
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
InvalidTargets: Structure
|
InvalidTargets: Structure, Infantry
|
||||||
Spread: 768
|
Spread: 768
|
||||||
Falloff: 100, 100, 0
|
Falloff: 100, 100, 0
|
||||||
Damage: 10000
|
Damage: 10000
|
||||||
|
|||||||
Reference in New Issue
Block a user