Skip to content

Commit

Permalink
Minor healer fix during battle
Browse files Browse the repository at this point in the history
  • Loading branch information
SMUnlimited committed Dec 7, 2024
1 parent 0897c8e commit 4d134ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jobs/MICRO_UNITS.eai
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function SaveUnit takes unit u , integer id returns nothing
// call SetUnitUserData(u, UNIT_GOING_HOME)
if healer != null then //and not IsUnitType(u, UNIT_TYPE_MECHANICAL) then //Repetitive judgment
set healertepy = healer_type[GetHealerId(GetUnitTypeId(healer))]
if not attack_running or (healertepy == HEALER_TYPE_NO_TARGET or healertepy == HEALER_TYPE_WARD or GetUnitState(u, UNIT_STATE_LIFE) > GetUnitState(u, UNIT_STATE_MAX_LIFE) * 55) then
if not attack_running or (healertepy == HEALER_TYPE_NO_TARGET or healertepy == HEALER_TYPE_WARD or GetUnitState(u, UNIT_STATE_LIFE) > GetUnitState(u, UNIT_STATE_MAX_LIFE) * 0.55) then
call CreateDebugTag("Going to Healer", 10, u, 3.00, 1.50)
// Captain In Combat , if healer no Immediate and extensive treatment , urgent healing need go home , avoid staying on the battlefield
set unitloc = GetUnitLoc(healer)
Expand Down

0 comments on commit 4d134ef

Please sign in to comment.