|
楼主 |
发表于 2014-12-11 03:39:56
|
显示全部楼层
- function Trig_B63T_Conditions takes nothing returns boolean
- if(not(GetSpellAbilityId()==0x414E7266))then
- return false
- endif
- return true
- endfunction
- function Trig_B63T_Func006C takes nothing returns boolean
- if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)>=60))then
- return false
- endif
- return true
- endfunction
- function Trig_B63T_Func008Func001C takes nothing returns boolean
- if(not(IsUnitAlly(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))==false))then
- return false
- endif
- if(not(GetOwningPlayer(GetEnumUnit())!=Player(15)))then
- return false
- endif
- if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false))then
- return false
- endif
- if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
- return false
- endif
- return true
- endfunction
- function Trig_B63T_Func008A takes nothing returns nothing
- if(Trig_B63T_Func008Func001C())then
- call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetEnumUnit())-GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit()))*((.2*I2R(GetUnitAbilityLevelSwapped(0x414E7266,GetTriggerUnit())))+.5)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
- call SetUnitFacingToFaceUnitTimed(GetLastCreatedUnit(),GetEnumUnit(),0)
- call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetEnumUnit())
- else
- endif
- endfunction
- function Trig_B63T_Actions takes nothing returns nothing
- set udg_TempPoint=GetSpellTargetLoc()
- call CreateNUnitsAtLoc(1,0x68303148,GetOwningPlayer(GetTriggerUnit()),udg_TempPoint,bj_UNIT_FACING)
- call UnitApplyTimedLifeBJ(6.,0x42544C46,GetLastCreatedUnit())
- call ShowUnitHide(GetLastCreatedUnit())
- call UnitAddAbilityBJ(0x41304843,GetLastCreatedUnit())
- if(Trig_B63T_Func006C())then
- call SetUnitAbilityLevelSwapped(0x41304843,GetLastCreatedUnit(),((GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)/60)+1))
- else
- endif
- set bj_wantDestroyGroup=true
- call ForGroupBJ(GetUnitsInRangeOfLocAll(800.00,udg_TempPoint),function Trig_B63T_Func008A)
- call RemoveLocation(udg_TempPoint)
- endfunction
- function InitTrig_B63T takes nothing returns nothing
- set gg_trg_B63T=CreateTrigger()
- call DisableTrigger(gg_trg_B63T)
- call TriggerRegisterAnyUnitEventBJ(gg_trg_B63T,EVENT_PLAYER_UNIT_SPELL_EFFECT)
- call TriggerAddCondition(gg_trg_B63T,Condition(function Trig_B63T_Conditions))
- call TriggerAddAction(gg_trg_B63T,function Trig_B63T_Actions)
- endfunction
复制代码
查找地图units目录下的txt文件后得知发动的技能ID是ANrf 其他的就不知道了=_=
|
|