~GaLs~
† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
- Reaction score
- 180
JASS:
scope HeroSpecAbil
globals
//====================================
public integer array ABILITY
//====================================
private integer GoldenKnight = 039;H002039;
endglobals
struct HSA
public static method Init takes nothing returns nothing
set ABILITY[GoldenKnight] = 039;A000039;
endmethod
endstruct
private function Trig_HeroSpecAbil_Actions takes nothing returns nothing
call IncUnitAbilityLevel(GetTriggerUnit(),ABILITY[GetUnitTypeId(GetTriggerUnit())])
endfunction
//===========================================================================
function InitTrig_HeroSpecAbil takes nothing returns nothing
set gg_trg_HeroSpecAbil = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ(gg_trg_HeroSpecAbil,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddAction( gg_trg_HeroSpecAbil, function Trig_HeroSpecAbil_Actions )
call HSA.Init()
call BJDebugMsg("Test1") //Not shown
endfunction
endscope
Why?