
最后遗言
A0MC/1093684547
AOae 耐久光环
air,enemies,ground,her0,invulnerable,vulnerable
buffID:B05V
function O53 takes nothing returns boolean
if GetLearnedSkill()==1093684547 and IsUnitIllusion(GetTriggerUnit())==false and GetUnitAbilityLevel(GetTriggerUnit(),1093684547)==1 then
call O43()
endif
return false
endfunction
非幻象学习1级遗言
function O43 takes nothing returns nothing
local unit JTI=GetTriggerUnit()
local trigger t=CreateTrigger()
local integer XII=GetHandleId(t)
call M8I(t,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t,Condition(function O13))
call SaveUnitHandle(HY,(XII),(2),(JTI))
set t=CreateTrigger()
set XII=GetHandleId(t)
call M8I(t,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(t,Condition(function O33))
call SaveUnitHandle(HY,(XII),(2),(JTI))
set JTI=null
set t=null
endfunction
创建触发器t,注册任意单位发动技能效果事件,任意单位死亡事件,条件函数O13、O33
function O13 takes nothing returns boolean
local unit JRI=GetTriggerUnit()
local unit JTI=(LoadUnitHandle(HY,(GetHandleId(GetTriggeringTrigger())),(2)))
local trigger t
if GetUnitAbilityLevel(GetTriggerUnit(),1110455638)>0 and GetUnitAbilityLevel(GetTriggerUnit(),1093678162)==0 and AB1(GetSpellAbilityId())==false and GetSpellAbilityId()!=1095328363 and GetSpellAbilityId()!=1093678426 and GetSpellAbilityId()!=1093682768 and GetSpellAbilityId()!=1093685593 and GetSpellAbilityId()!=1093678680 and GetSpellAbilityId()!=1093681489 and GetSpellAbilityId()!=1093808472 and GetSpellAbilityId()!=1093808471 and GetSpellAbilityId()!=1093808470 and GetSpellAbilityId()!=1093743191 and GetSpellAbilityId()!=1093678667 and GetSpellAbilityId()!=1097163124 and GetSpellAbilityId()!=1093683801 and GetSpellAbilityId()!=1093682767 and GetSpellAbilityId()!=1093750345 and GetSpellAbilityId()!=1093750089 and GetSpellAbilityId()!=1093751096 and GetSpellAbilityId()!=1093751361 and GetSpellAbilityId()!=1093751126 and GetSpellAbilityId()!=1093808473 and GetSpellAbilityId()!=1093748565 and GetSpellAbilityId()!=1093753177 and OI3(GetSpellAbilityId())==false then
if IsUnitEnemy(JRI,GetOwningPlayer(JTI))==true and A91(GetSpellAbilityId())==false then
if((LoadInteger(HY,(GetHandleId((JRI))),((4305))))==1)==false then
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,JRI,EVENT_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(t,Condition(function O03))
call SaveUnitHandle(HY,(GetHandleId(t)),(2),(JTI))
call SaveUnitHandle(HY,(GetHandleId(t)),(17),(JRI))
set t=null
endif
endif
endif
set JRI=null
set JTI=null
return false
endfunction
无比凶悍的条件判定啊。人话如下:
单位有最后遗言buff,没有标记技能,释放技能不是被过滤的技能,则创建触发器t,给t注册指定单位(就是这个释放不被过滤技能的单位)停止释放技能事件,添加条件O03
过滤技能如下:
单位类
A1S9释放毒咒 A06K腐烂 A1VG巨战木棍 A28Q过载 A1WF定点爆破 A20N中断凤凰冲击 A1Z2指定烈火精灵 A1YY烈日炙烤 A1Z3停止烈日炙烤 A205烈日炙烤移动 A21J收回先祖之魂 A27X隔空取物指向 A24E停止海妖之歌 A2FX收回飞锯 A0MP魔法盾 A2JO火之余烬 A2JL火之余烬指定 A21X雷 A21W冰 A21V火 A21Y元素祈唤 A1GU元素祈唤(A杖) A1NI不稳定化合物 A1MI冰晶爆轰 A1QV斥候变形 A0DY推进 A1WB推进(A杖) A026霜冻之箭 A09V毒性攻击 Ahfa灼热之箭 A0LZ智慧之刃 A0QN沸血之矛 A0OI奥术法球
物品类
A0T8臂章关闭 A0T7臂章开启 A28Y迈达斯之手 A14A动力鞋 A1WO 、A269 王者之戒切换 A2KG、A2KE天鹰之戒切换 A1ZI 、A1ZH孤注一掷 A1FQ克敌机先切换 A0TE紫苑 A02W、A2KH刷新球 A2K9林肯法球 Aeat吃树 A0JY魔棒 A1Q8灵魂之戒 Aibk闪烁 A0FO魔瓶 A0H6空瓶 A0H7魔瓶(神符) A12W相位鞋 A1ZW先祖韧鼓 A0B6召唤动物信使 A0JT召唤飞行信使 A0K7奥术鞋 A11F、 A11H、A11G、 A11D、 A0S3、A11E天神下凡 A15W刃甲 A2HQ收割之刃(一个隐藏物品,详见百度) A231远行鞋 A08Y、A08Z、A090、A092、A02O达贡之神力 Aipg净魂之刃(就是散失的净化,什么渣翻译) Aitb显影之尘(我还是觉得显隐之尘翻译更好) A1T7飓风(风杖的) A1QD以太冲击 A19M原力法杖(就是推杖,又见蛋疼翻译) A1AC幽灵药剂(就是魂杖的虚无) Achx变羊(羊刀) A1EW卡德加之洞察烟斗(绿帽子) A017疾风步(洛萨之锋) A1WE幻影斧(远程) A0B8幻影斧 Aixk疯狂面具 A0CK梅肯斯姆 A0JL静电冲击(雷神之锤) A1FO金箍棒切换 Aida玄冥盾牌 A0HB、A0D3、A0DF死灵书 A1FD砍树(压制之刃) A1IO辉耀切换 A1FP撒旦之邪力 A0T9极寒冲击(希瓦的守护) A1MO灵魂释放(影之灵龛) A28D纷争面纱 A0K0奶酪 Aipl小净化药水 Aipr治疗药膏 A02X侦察守卫 Aisw岗哨守卫 A1R5回城卷轴 A206诡计之雾 A2EA致残(阿托斯之棍) A2K1静谧之鞋 A2K7击溃(深渊之刃) A2K4缴械(天堂之戟)
陈旧类(现在没人有这些技能了,但IF也没优化掉)
脉冲新星(3个技能,常规A21F、A杖A21G、关闭A21H) A0QY电子咆哮(旧蓝猫) A1RA停止灵魂汲取 A06X脉冲新星 A0AQ脉冲新星(A杖) A24A冰(旧) A24B火(旧) A05Z天神下凡(旧) A0FP法术否定(旧) A2HO 致残(废弃)










