mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-01-19 19:14:45 +00:00
38 lines
662 B
PHP
38 lines
662 B
PHP
// #autoload
|
|
// #name = Static Waypoint Fix
|
|
// #version = 1.0
|
|
// #category = Fix
|
|
// #warrior = Jsut
|
|
// #description = Fixes static waypoints in the command circuit.
|
|
|
|
package JsutStaticWaypointFix
|
|
{
|
|
|
|
function CommanderTree::processCommand(%this, %command, %target, %typeTag)
|
|
|
|
{
|
|
|
|
parent::processCommand(%this, %command, %target, %typeTag);
|
|
|
|
// special case?
|
|
|
|
if(%typeTag < 0)
|
|
{
|
|
switch$(getTaggedString(%command))
|
|
{
|
|
// waypoints: tree owns the waypoint targets
|
|
case "CreateWayPoint":
|
|
%target.settext(%this.currentWaypointID);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
activatePackage(JsutStaticWaypointFix);
|
|
|
|
|
|
|
|
|
|
|