Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/tutorials/introductory_tutorial.js
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | Trigger.prototype.LaunchAttack = function() | ||||
}); | }); | ||||
ProcessCommand(this.enemyID, { | ProcessCommand(this.enemyID, { | ||||
"type": "attack-walk", | "type": "attack-walk", | ||||
"entities": this.attackers, | "entities": this.attackers, | ||||
"x": position.x, | "x": position.x, | ||||
"z": position.y, | "z": position.y, | ||||
"targetClasses": { "attack": ["Unit"] }, | "targetClasses": { "attack": ["Unit"] }, | ||||
"allowCapture": false, | "ignoreAttackEffects": { | ||||
"Capture": true | |||||
}, | |||||
"queued": false | "queued": false | ||||
}); | }); | ||||
}; | }; | ||||
Trigger.prototype.IsAttackRepelled = function() | Trigger.prototype.IsAttackRepelled = function() | ||||
{ | { | ||||
return !this.attackers.some(e => Engine.QueryInterface(e, IID_Health) && Engine.QueryInterface(e, IID_Health).GetHitpoints() > 0); | return !this.attackers.some(e => Engine.QueryInterface(e, IID_Health) && Engine.QueryInterface(e, IID_Health).GetHitpoints() > 0); | ||||
}; | }; | ||||
Show All 22 Lines |
Wildfire Games · Phabricator