Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
// custom attacked reports...
report.attacked.custom = function(obj, attacker) {
	if (obj.type != DROID) return;
	if (isFixVTOL(obj)) { // custom: vtols attacked while fleeing the battlefield
	if (isFixVTOL(obj)) {
		if (!!attacker && isAntiAir(attacker)) return "custom.abort";
		if (isRepairing(obj)) return "custom.rearm";
		if (isRetreating(obj)) return "custom.return";
	} else { // custom: non-vtol droids attacked while fleeing the battlefield
		if (isRepairing(obj)) return "custom.repairs";
		if (isRetreating(obj)) return "custom.retreat";
	}
}

...