Make sandworms not eat infantry
This commit is contained in:
@@ -99,7 +99,8 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
targetCountdown = Info.TargetRescanInterval;
|
||||
|
||||
// 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)
|
||||
{
|
||||
self.CancelActivity();
|
||||
|
||||
@@ -563,10 +563,10 @@ Heal:
|
||||
|
||||
WormJaw:
|
||||
ReloadDelay: 10
|
||||
InvalidTargets: Structure
|
||||
InvalidTargets: Structure, Infantry
|
||||
Range: 1c512
|
||||
Warhead@1Dam: SpreadDamage
|
||||
InvalidTargets: Structure
|
||||
InvalidTargets: Structure, Infantry
|
||||
Spread: 768
|
||||
Falloff: 100, 100, 0
|
||||
Damage: 10000
|
||||
|
||||
Reference in New Issue
Block a user