• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) đź”—Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans đź”—Click here to read the full interview.

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