Lmfaocj
Active Member
- Reaction score
- 1
Sorry this may of been asked already but I don't really know what to search for because when I did do my search all I found wars random raging and other stuff not related to what I am going to ask.
I wanted to know how to make a warriors rage I already made one but I don't think its a really good one I am using damage by jesus4lyf or how ever you spell his name.
I wanted to know how to make a warriors rage I already made one but I don't think its a really good one I am using damage by jesus4lyf or how ever you spell his name.
JASS:
function Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEventDamageSource()) == 039;O003039; ) ) then
return false
endif
return true
endfunction
function Trig_Warrior_Func001001 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_MANA, GetEventDamageSource()) >= 90.00 )
endfunction
function Actions takes nothing returns nothing
if ( Trig_Warrior_Func001001() ) then
call SetUnitManaBJ( GetEventDamageSource(), 100.00 )
else
call SetUnitManaBJ( GetEventDamageSource(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetEventDamageSource()) + 3.00 ) )
endif
endfunction
//===========================================================================
function InitTrig_Warrior takes nothing returns nothing
local trigger t= CreateTrigger()
call TriggerAddCondition( t, Condition( function Conditions ) )
call TriggerAddAction( t, function Actions )
call Damage_RegisterEvent(t)
endfunction