• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

help with a spell

Status
Not open for further replies.
Level 7
Joined
Oct 12, 2004
Messages
186
I'm making a spell that allows the hero to cast spells for 30 seconds without using mana. Only problem is with the trigger. It doesn't work right. Mana is still used up.

Code:
mana font
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Stone I 
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Casting unit) has buff Mana Font ) Equal to True
                    Then - Actions
                        Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 9.00)
                    Else - Actions
                        Do nothing
            Else - Actions
                Do nothing

Please help me. BTW the spell uses only 9 mana.
Thanks
 
Status
Not open for further replies.
Top