Verify if unit has certain Ability

Status
Not open for further replies.
Use integer comparison, and from filter choose: (Level of ABILITY X for (Target of ability bing cast)) Greater than 0.

However, you want to prevent caster for using ability this way use:
  • init
    • Events
      • Unit - A Unit Begins casting the spell
    • Conditions
      • (Ability being cast) Equal to Storm Bolt
    • Actions
      • If (All ocnditions are true) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of ABILITY X for (Target of ability bing cast)) Less or equal to 0
        • Then - Actions
          • Unit - Pause (Triggering unit)
          • Unit - Order (Triggering unit) to Stop
          • Unit - Unpause (Triggering unit)
          • Set tempforce = (PlayerGroup(Triggering player))
          • Game - Display to tempforce message: <your message>
          • Custom script: call DestroyForce(udg_tempforce)
        • Else - Actions
 
Status
Not open for further replies.
Top