zero9x
Active Member
- Reaction score
- 1
I saw a skill that will: reduce all mana of Target Unit and return it after few seconds. (Return 90/85/80/75% of the mana lost)
But i dont know how to do it, i tried to make this trigger, thats
Set: Temp_Real = Mana of Target Unit
Set mana of target unit = Temp_Real - Temp_Real
Wait 1.75/2/2.25/2.5 seconds
Set mana of Target Unit = Temp_Real + (Temp_Real x ((0.95 - 0.05 x Real Lv of Ability)))
But it isnt work, can u guys help me to make this skill with MUI?
Hope this spell will useful to some one:
Target a unit, cause it lose all mana, return 90/85/80/75% of the mana to that unit after 1.75/2.5/3.25/4s.
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) Mana Freeze
- Actions
- Custom Script: local unit u = GetSpellTargetUnit()
- Custom Script: local real delay = 1.00 + ( 0.75 * I2R(GetUnitAbilityLevelSwapped('XXXX', GetTriggerUnit()) ) )
- Custom Script: local real mana = GetUnitStateSwap(UNIT_STATE_MANA, u) * ( 0.95 - ( 0.05 * I2R(GetUnitAbilityLevelSwapped('XXXX', GetTriggerUnit()) ) ) )
- Custom Script: if ( GetUnitStateSwap(UNIT_STATE_MANA, u) > 0.00) then
- Custom Script: call SetUnitManaBJ( u, 0.00 )
- Custom Script: call TriggerSleepAction( delay )
- Custom Script: call SetUnitManaBJ( u, mana )
- Custom Script: endif
- Custom Script: set u = null
change XXXX with the ability ID of mana freeze
Done by jnZ