Medivac/Shield Battery heal stasised/invulnerable units

Issue

  • Medivac’s heal cannot start to heal a unit that is in stasis
  • Shield Battery completely ignores stasis
  • Both continue to heal it when it enters stasis after the healing beam started
  • Stasis Ward ability’s description states that the units cannot be affected by abilities

=> Medivac and Shield Battery should stop healing these units and the Shield Battery should not be allowed to target invulnerable/stasised units, just like the Medivac

Fix:

    <CValidatorUnitFilters id="MedivacHealTargetFilter">
        <Filters value="Biological,Visible;Enemy,Stasis,Dead,Hidden,Invulnerable"/>
    </CValidatorUnitFilters>
    <CValidatorUnitFilters id="ShieldBatteryRechargeTargetFilter">
        <Filters value="Visible;Stasis,Dead,Hidden,Invulnerable"/>
    </CValidatorUnitFilters>
        
    <CEffectCreateHealer id="MedivacHeal">
        <ValidatorArray index="9" value="MedivacHealTargetFilter"/>
    </CEffectCreateHealer>
    <CEffectCreateHealer id="ShieldBatteryRechargeEx5">
        <ValidatorArray index="3" value="ShieldBatteryRechargeTargetFilter"/>
    </CEffectCreateHealer>

More info/documentation:
https://github.com/Ahli/sc2xml/issues/28

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.