Commit 397fd75e authored by xiaoye's avatar xiaoye

黑翼/白翼

parent 3e418aa7
......@@ -878,6 +878,7 @@ AFFECT_CODE_MIX_DIFFERENT_NAME =VgID+1 --魔合成(卡名不同)
AFFECT_CODE_SENDTOG =VgID+2 --需要两张卡才能防御
AFFECT_CODE_NIGHT =VgID+3 --黑夜
AFFECT_CODE_DEEP_NIGHT =VgID+4 --深渊黑夜
AFFECT_CODE_BOTH_WING =VgID+5 --你的卡片的白翼能力和黑翼能力两方均有效
AFFECT_CODE_OVERLAY_INSTEAD_WHEN_RIDE =10501082 --不执行『选择手牌中的1张卡,舍弃』而是执行『灵魂爆发1』来将卡RIDE
......
......@@ -1028,4 +1028,26 @@ function VgF.Sendto(loc,sg,...)
return return_group:GetCount()
end
return 0
end
-- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效
function VgF.WhiteWing(e)
local tp=e:GetHandlerPlayer()
local a=vgf.IsExistingMatchingCard(function (c)
return c:GetLevel()%2==1
end,tp,LOCATION_REMOVED,0,1,nil)
local b=vgf.IsExistingMatchingCard(function (c)
return c:GetLevel()%2==0
end,tp,LOCATION_REMOVED,0,1,nil)
return (not a and b) or Duel.IsPlayerAffectedByEffect(tp,AFFECT_CODE_BOTH_WING)
end
-- 黑翼能力在你的封锁区中的卡只有偶数的等级的场合有效
function VgF.DarkWing(e)
local tp=e:GetHandlerPlayer()
local a=vgf.IsExistingMatchingCard(function (c)
return c:GetLevel()%2==1
end,tp,LOCATION_REMOVED,0,1,nil)
local b=vgf.IsExistingMatchingCard(function (c)
return c:GetLevel()%2==0
end,tp,LOCATION_REMOVED,0,1,nil)
return (a and not b) or Duel.IsPlayerAffectedByEffect(tp,AFFECT_CODE_BOTH_WING)
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment