You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
800 B
29 lines
800 B
3 years ago
|
#if 0
|
||
|
//--------------------------------------------//
|
||
|
// 本文件为自动生成,请勿编辑 //
|
||
|
// thanks to 最萌小汐 //
|
||
|
//--------------------------------------------//
|
||
|
#endif
|
||
|
#ifdef USE_BJ_ANTI_LEAK
|
||
|
#ifndef YDWEDelayedSuspendDecayFleshEnumNullIncluded
|
||
|
#define YDWEDelayedSuspendDecayFleshEnumNullIncluded
|
||
|
|
||
|
|
||
|
library YDWEDelayedSuspendDecayFleshEnumNull
|
||
|
|
||
|
function YDWEDelayedSuspendDecayFleshEnumNull takes nothing returns nothing
|
||
|
local unit enumUnit = GetEnumUnit()
|
||
|
|
||
|
if (GetUnitState(enumUnit, UNIT_STATE_LIFE) <= 0) then
|
||
|
call UnitSuspendDecay(enumUnit, true)
|
||
|
call SetUnitTimeScale(enumUnit, 10.0)
|
||
|
call SetUnitAnimation(enumUnit, "decay flesh")
|
||
|
endif
|
||
|
set enumUnit = null
|
||
|
endfunction
|
||
|
|
||
|
endlibrary
|
||
|
|
||
|
#endif
|
||
|
#endif
|