Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/skirmishes/gallic_fields_3p.js
Show All 17 Lines | for (var target of this.GetTriggerPoints("A")) | ||||
cmd = cmpPosition.GetPosition(); | cmd = cmpPosition.GetPosition(); | ||||
break; | break; | ||||
} | } | ||||
if (!cmd) | if (!cmd) | ||||
continue; | continue; | ||||
cmd.type = "attack-walk"; | cmd.type = "attack-walk"; | ||||
cmd.entities = intruders[origin]; | cmd.entities = intruders[origin]; | ||||
cmd.targetClasses = { "attack": ["Unit", "Structure"] }; | cmd.targetClasses = { "attack": ["Unit", "Structure"] }; | ||||
cmd.allowCapture = false; | cmd.ignoreAttackEffects = { "Capture": true }; | ||||
cmd.queued = true; | cmd.queued = true; | ||||
ProcessCommand(0, cmd); | ProcessCommand(0, cmd); | ||||
} | } | ||||
// enlarge the attack time and size | // enlarge the attack time and size | ||||
var rand = randFloat(1, 3); | var rand = randFloat(1, 3); | ||||
this.attackTime *= rand; | this.attackTime *= rand; | ||||
this.attackSize = Math.round(this.attackSize * rand); | this.attackSize = Math.round(this.attackSize * rand); | ||||
Show All 9 Lines |
Wildfire Games · Phabricator