- Joined
- Jun 2, 2009
- Messages
- 1,276
Hello everyone. I am trying to create item like this
When you cast spells on enemy, it protects the caster for 3 seconds. The problem it, i want to add cooldown to it. I want to make it work for 1 time in 10 seconds.
Here is the trigger and i am confused.This item must be works 1 times in 10 seconds period.
When you cast spells on enemy, it protects the caster for 3 seconds. The problem it, i want to add cooldown to it. I want to make it work for 1 time in 10 seconds.
Here is the trigger and i am confused.This item must be works 1 times in 10 seconds period.
-
Robe of Protection Cast
-

Events
-


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

Conditions
-


((Casting unit) has an item of type Robe of Protection |cff87cefa(Intelligence Unique)|r) Equal to True
-


((Casting unit) belongs to an enemy of (Owner of (Target unit of ability being cast))) Equal to True
-


((Casting unit) is in CapeGroup) Equal to False
-
-

Actions
-


Unit Group - Add (Triggering unit) to CapeGroup
-


Set CapeBoolean[(Player number of (Owner of (Casting unit)))] = True
-


Wait 10.00 seconds
-


Unit Group - Remove (Triggering unit) from CapeGroup
-
-
-
Robe of Protection Cast2
-

Events
-


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

Conditions
-


((Casting unit) has an item of type Robe of Protection |cff87cefa(Intelligence Unique)|r) Equal to True
-


((Casting unit) belongs to an enemy of (Owner of (Target unit of ability being cast))) Equal to True
-


CapeBoolean[(Player number of (Owner of (Triggering unit)))] Equal to False
-
-

Actions
-


Set CapeBoolean[(Player number of (Owner of (Triggering unit)))] = True
-


Game - Display to (All players) for 1.00 seconds the text: |cff00ff00True|r
-


Wait 3.00 seconds
-


Set CapeBoolean[(Player number of (Owner of (Triggering unit)))] = False
-


Game - Display to (All players) for 1.00 seconds the text: |cffff0000False|r
-
-
-
Robe of Protection Resist
-

Events
-


Game - DamageModifierEvent becomes Equal to 1.00
-
-

Conditions
-


CapeBoolean[(Player number of (Owner of DamageEventTarget))] Equal to True
-
-

Actions
-


Set DamageEventAmount = (DamageEventAmount x 0.40)
-
-


