Differential D2973 Diff 13330 binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | Trigger.prototype.StartAnEnemyWave = function() | ||||
{ | { | ||||
if (dryRun) | if (dryRun) | ||||
{ | { | ||||
spawned = true; | spawned = true; | ||||
break; | break; | ||||
} | } | ||||
// Don't spawn attackers for defeated players and players that lost their cc after win | // Don't spawn attackers for defeated players and players that lost their cc after win | ||||
let playerID = QueryOwnerInterface(point, IID_Player).GetPlayerID(); | let cmpPlayer = QueryOwnerInterface(point, IID_Player); | ||||
if (!cmpPlayer) | |||||
continue; | |||||
let playerID = cmpPlayer.GetPlayerID(); | |||||
let civicCentre = this.playerCivicCenter[playerID]; | let civicCentre = this.playerCivicCenter[playerID]; | ||||
if (!civicCentre) | if (!civicCentre) | ||||
continue; | continue; | ||||
// Check if the cc is garrisoned in another building | // Check if the cc is garrisoned in another building | ||||
let targetPos = TriggerHelper.GetEntityPosition2D(civicCentre); | let targetPos = TriggerHelper.GetEntityPosition2D(civicCentre); | ||||
if (!targetPos) | if (!targetPos) | ||||
continue; | continue; | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator