Skip to content

Commit

Permalink
Fix Adaptive Medpacks heal on Breakout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jul 27, 2024
1 parent 1bc9700 commit 58d329c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
Binary file modified Maps/ArchipelagoCampaign/WoL/ap_breakout.SC2Map/DocumentHeader
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ void gf_MedicAI (int lp_owner, unit lp_medic, unitgroup lp_candidates) {
// Implementation
if ((UnitGetPropertyFixed(gv_tosh, c_unitPropLifePercent, c_unitPropCurrent) < 100.0) && (DistanceBetweenPoints(UnitGetPosition(gv_tosh), UnitGetPosition(lp_medic)) <= 6.0)) {
libNtve_gf_AICast(lp_medic, OrderTargetingUnit(AbilityCommand("AP_heal", 0), gv_tosh));
libNtve_gf_AICast(lp_medic, OrderTargetingUnit(AbilityCommand("AP_HealPlusMech", 0), gv_tosh));
}

}
Expand Down
30 changes: 30 additions & 0 deletions Maps/ArchipelagoCampaign/WoL/ap_breakout.SC2Map/Triggers
Original file line number Diff line number Diff line change
Expand Up @@ -32263,6 +32263,7 @@
<Element Type="FunctionCall" Id="96675798">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="00000137"/>
<FunctionCall Type="FunctionCall" Id="0D1B059B"/>
<FunctionCall Type="FunctionCall" Id="67E0AA85"/>
<FunctionCall Type="FunctionCall" Id="34C7F150"/>
<FunctionCall Type="FunctionCall" Id="0A6AF085"/>
</Element>
Expand Down Expand Up @@ -32295,6 +32296,35 @@
<ValueType Type="abilcmd"/>
<ValueTypeInfo Value="1"/>
</Element>
<Element Type="FunctionCall" Id="67E0AA85">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="1DFB2458"/>
<SubFunctionType Type="SubFuncType" Library="Ntve" Id="00000004"/>
<Parameter Type="Param" Id="067E6649"/>
<Parameter Type="Param" Id="A018D83F"/>
</Element>
<Element Type="Param" Id="067E6649">
<ParameterDef Type="ParamDef" Library="Ntve" Id="92B7B1DA"/>
<Parameter Type="ParamDef" Id="229F63C3"/>
</Element>
<Element Type="Param" Id="A018D83F">
<ParameterDef Type="ParamDef" Library="Ntve" Id="8159294D"/>
<FunctionCall Type="FunctionCall" Id="8A45F432"/>
</Element>
<Element Type="FunctionCall" Id="8A45F432">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="F6F9120D"/>
<Parameter Type="Param" Id="69BCD16D"/>
<Parameter Type="Param" Id="A8B16BED"/>
</Element>
<Element Type="Param" Id="69BCD16D">
<ParameterDef Type="ParamDef" Library="Ntve" Id="402665EE"/>
<Variable Type="Variable" Id="A339B414"/>
</Element>
<Element Type="Param" Id="A8B16BED">
<ParameterDef Type="ParamDef" Library="Ntve" Id="BF82A2BC"/>
<Value>AP_HealPlusMech</Value>
<ValueType Type="abilcmd"/>
<ValueTypeInfo Value="1"/>
</Element>
<Element Type="FunctionCall" Id="34C7F150">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="C439C375"/>
<SubFunctionType Type="SubFuncType" Library="Ntve" Id="00000003"/>
Expand Down
Binary file modified Maps/ArchipelagoCampaign/WoL/ap_breakout.SC2Map/Triggers.version
Binary file not shown.

0 comments on commit 58d329c

Please sign in to comment.