SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,991
Hello, Hive!
I've been hearing reports of a spell in my map, sometimes not working. It's a passive ability that gives each spellcast % chance to reset its own cooldown, to restore a bit mana and to create a special effect. The spell works like.. >80% of the time, but sometimes the special effect occurs, but the cooldown is not reset (I am not sure about the mana part). Posting ability description + triggers below. Oh, and.. I am using waits but they are paired with turn on/off trigger. This is explained in the tooltip as: the effect cannot occur more than once per second. Why does the wait exist you ask? Since heroes have certain animation delay when they cast spells, if you cast an ability without using wait and it resets --> the ability doesn't have time to get cast, because the reset removes it before hero animation occurs.
Trigger
I've been hearing reports of a spell in my map, sometimes not working. It's a passive ability that gives each spellcast % chance to reset its own cooldown, to restore a bit mana and to create a special effect. The spell works like.. >80% of the time, but sometimes the special effect occurs, but the cooldown is not reset (I am not sure about the mana part). Posting ability description + triggers below. Oh, and.. I am using waits but they are paired with turn on/off trigger. This is explained in the tooltip as: the effect cannot occur more than once per second. Why does the wait exist you ask? Since heroes have certain animation delay when they cast spells, if you cast an ability without using wait and it resets --> the ability doesn't have time to get cast, because the reset removes it before hero animation occurs.
![]() | Arcane Master (Passive): Each spellcast of the Mage (except Polar Blast) has 12% to reset its own cooldown. Every 15 points of Intelligence increase that chance by 1%. In addition, whenever a cooldown reset occurs, the Mage will restore 6 mana (+3 per Hero Level). This effect cannot occur more than once each second. |
Trigger
[trigger=""]Arcane Master
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Fire Bomb
(Ability being cast) Equal to Pyroblast
(Ability being cast) Equal to Ring of Frost
(Ability being cast) Equal to Arcane Pulse
Actions
Trigger - Turn off (This trigger)
Wait 0.20 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 0 and 100) Less than or equal to (12 + ((Intelligence of (Triggering unit) (Include bonuses)) / 15))
Then - Actions
-------- MANA --------
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + (6.00 + (3.00 x (Real((Hero level of (Triggering unit)))))))
-------- RESET --------
Set ArcaneMaster_Ability = (Ability being cast)
Set ArcaneMaster_AbilityLevel = (Level of ArcaneMaster_Ability for (Triggering unit))
Unit - Remove ArcaneMaster_Ability from (Triggering unit)
Unit - Add ArcaneMaster_Ability to (Triggering unit)
Unit - Set level of ArcaneMaster_Ability for (Triggering unit) to ArcaneMaster_AbilityLevel
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Wait 0.80 seconds
Trigger - Turn on (This trigger)
[/trigger]
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Fire Bomb
(Ability being cast) Equal to Pyroblast
(Ability being cast) Equal to Ring of Frost
(Ability being cast) Equal to Arcane Pulse
Actions
Trigger - Turn off (This trigger)
Wait 0.20 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 0 and 100) Less than or equal to (12 + ((Intelligence of (Triggering unit) (Include bonuses)) / 15))
Then - Actions
-------- MANA --------
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + (6.00 + (3.00 x (Real((Hero level of (Triggering unit)))))))
-------- RESET --------
Set ArcaneMaster_Ability = (Ability being cast)
Set ArcaneMaster_AbilityLevel = (Level of ArcaneMaster_Ability for (Triggering unit))
Unit - Remove ArcaneMaster_Ability from (Triggering unit)
Unit - Add ArcaneMaster_Ability to (Triggering unit)
Unit - Set level of ArcaneMaster_Ability for (Triggering unit) to ArcaneMaster_AbilityLevel
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Wait 0.80 seconds
Trigger - Turn on (This trigger)
[/trigger]