|
楼主 |
发表于 2010-4-23 19:08:21
|
显示全部楼层
不行啊
[jass]
function gmjs_Condition takes nothing returns boolean
if IsUnitAlly(GetFilterUnit(), GetTriggerPlayer()) then
call SetUnitState(GetFilterUnit(),UNIT_STATE_LIFE,GetUnitState(GetFilterUnit(),UNIT_STATE_LIFE)+GetUnitAbilityLevel(GetTriggerUnit(),GetSpellAbilityId())*100+GetHeroInt(GetTriggerUnit(),true)*5)
call DisplayTextToPlayer(GetTriggerPlayer(),0.00,0.00,"1")
endif
return false
endfunction
function gmjs takes nothing returns boolean
local group g=null
local boolexpr b=null
if GetSpellAbilityId()=='A01D' then
set g=CreateGroup()
set b=Condition(function gmjs_Condition)
call GroupEnumUnitsInRect(g,GetPlayableMapRect(),b)
call DestroyGroup(g)
call DestroyBoolExpr(b)
set b=null
set g=null
endif
return false
endfunction
function IntiTrig_SKill_Billion takes nothing returns nothing
local trigger trg =CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( trg, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( trg, Condition(function gmjs))
set trg=null
endfunction[/jass] |
|