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.
31 lines
859 B
31 lines
859 B
#if 0
|
|
//--------------------------------------------//
|
|
// 本文件为自动生成,请勿编辑 //
|
|
// thanks to 最萌小汐 //
|
|
//--------------------------------------------//
|
|
#endif
|
|
#ifdef USE_BJ_ANTI_LEAK
|
|
#ifndef YDWESetPlayerColorBJNullIncluded
|
|
#define YDWESetPlayerColorBJNullIncluded
|
|
|
|
|
|
library YDWESetPlayerColorBJNull
|
|
|
|
function YDWESetPlayerColorBJNull takes player whichPlayer, playercolor color, boolean changeExisting returns nothing
|
|
local group g
|
|
|
|
call SetPlayerColor(whichPlayer, color)
|
|
if changeExisting then
|
|
set bj_setPlayerTargetColor = color
|
|
set g = CreateGroup()
|
|
call GroupEnumUnitsOfPlayer(g, whichPlayer, null)
|
|
call ForGroup(g, function SetPlayerColorBJEnum)
|
|
call DestroyGroup(g)
|
|
endif
|
|
set g = null
|
|
endfunction
|
|
|
|
endlibrary
|
|
|
|
#endif
|
|
#endif
|
|
|