|
[codes=jass]
function A takes location P returns nothing
set P = GetUnitLoc(GetDyingUnit())
call ReviveHeroLoc( GetDyingUnit(), P, true )
call RemoveLocation( P )
call DisplayTextToPlayer( GetOwningPlayer(GetKillingUnit()), 0, 0, "|CFFFFD700哈哈!我是打不死的小强,来啊,来杀我啊 -_-!|R" )
endfunction
function InitTrig_AA takes nothing returns nothing
set gg_trg_AA = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AA, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_AA, A )
endfunction
[/codes]
________________________________________________________________
请各位看官指出上面明显的错误 |
|