Skip to content

Commit 0ee19ed

Browse files
committed
Fixes #2: When playing alien level 5 as the astros you would lose when the alien speeder got destroyed.
1 parent 54a0f38 commit 0ee19ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mods/redux/redux/DOMDocument.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,14 @@ function registerCheat(id:String, code:String, linked:Array) {
679679
}
680680
681681
if (this.level == 15) {
682+
// Bugfix: Only enforce the lose condition if the level is being played as the correct team.
683+
if (this.parent.team == "evil") {
682684
var isBuggy = this.findUnit("UE_evil");
683685
if (!isBuggy) {
684686
this.lose();
685687
}
686688
}
689+
}
687690
688691
if (this.level == 19) {
689692
// Fix lose condition: previously if you didn't own the breeding pit (not captured, been sold or destroyed)
@@ -3157,6 +3160,7 @@ function CACMod_OnGameMenu():Void {
31573160
</persistentData>
31583161
<PrinterSettings/>
31593162
<publishHistory>
3163+
<PublishItem publishSize="18294" publishTime="1523760392"/>
31603164
<PublishItem publishSize="18257" publishTime="1504232348"/>
31613165
<PublishItem publishSize="17919" publishTime="1504232322"/>
31623166
<PublishItem publishSize="18286" publishTime="1503849859"/>
@@ -3176,6 +3180,5 @@ function CACMod_OnGameMenu():Void {
31763180
<PublishItem publishSize="17785" publishTime="1496637228"/>
31773181
<PublishItem publishSize="17080" publishTime="1496211687"/>
31783182
<PublishItem publishSize="17080" publishTime="1496211660"/>
3179-
<PublishItem publishSize="17799" publishTime="1495942027"/>
31803183
</publishHistory>
31813184
</DOMDocument>

0 commit comments

Comments
 (0)