Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/petra/attackPlan.js
Show First 20 Lines • Show All 1,134 Lines • ▼ Show 20 Lines | else if (struct.get("Obstruction/Unit")) | ||||
if (x*x + y*y < r*r) | if (x*x + y*y < r*r) | ||||
{ | { | ||||
blocker = struct; | blocker = struct; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (blocker && blocker.hasClass("StoneWall")) | if (blocker) | ||||
{ | |||||
this.isBlocked = true; | |||||
return blocker; | |||||
} | |||||
else if (blocker) | |||||
{ | { | ||||
this.isBlocked = true; | this.isBlocked = true; | ||||
return blocker; | return blocker; | ||||
} | } | ||||
return target; | return target; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 1,022 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator