Hello,
I have a morph ability based on Bear Form that requires an item in order to work. All is fine and dandy but I cannot get the unit to not cast the ability when the item is not present in the inventory - the trigger detects that there is no item, displays the correct message but the ability is still cast.
I tried 4-5 variations of this trigger and nothing seems to work.
Any help would be much apreciated.
Cheers
I have a morph ability based on Bear Form that requires an item in order to work. All is fine and dandy but I cannot get the unit to not cast the ability when the item is not present in the inventory - the trigger detects that there is no item, displays the correct message but the ability is still cast.
-
Switch Test
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Switch Attack (Alliance)
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






((Triggering unit) has an item of type itmBows[0]) Equal to False
-






((Triggering unit) has an item of type itmBows[1]) Equal to False
-






((Triggering unit) has an item of type itmBows[2]) Equal to False
-






((Triggering unit) has an item of type itmCrossbows[0]) Equal to False
-
-
-
-



Then - Actions
-




Unit - Pause (Triggering unit)
-




Unit - Order (Triggering unit) to Stop
-




Unit - Unpause (Triggering unit)
-




Game - Display to (Player group((Owner of (Triggering unit)))) the text: You need a ranged w...
-




-------- To stop the spell from switching without the requirements --------
-
-



Else - Actions
-
-
-
I tried 4-5 variations of this trigger and nothing seems to work.
Any help would be much apreciated.
Cheers


