Commit c1ef96e8 authored by xiaoye's avatar xiaoye

修复白翼

parent df6e6da0
......@@ -1173,7 +1173,7 @@ function VgF.WhiteWing(e)
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)
return (a and not b) or Duel.IsPlayerAffectedByEffect(tp,AFFECT_CODE_BOTH_WING)
end
-- 黑翼能力在你的封锁区中的卡只有偶数的等级的场合有效
function VgF.DarkWing(e)
......@@ -1184,7 +1184,7 @@ function VgF.DarkWing(e)
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)
return (not a and b) or Duel.IsPlayerAffectedByEffect(tp,AFFECT_CODE_BOTH_WING)
end
function VgF.AddRideMaterialSetCardCheck(c,m,...)
......
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1:SetCode(AFFECT_CODE_OVERLAY_INSTEAD_WHEN_RIDE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(function (e,tp,eg,ep,ev,re,r,rp)
return cm.con(e,tp,eg,ep,ev,re,r,rp) and vgf.VMonsterCondition(e)
return vgf.WhiteWing(e) and vgf.VMonsterCondition(e)
end)
e1:SetTargetRange(1,0)
c:RegisterEffect(e1)
......@@ -17,7 +17,7 @@ function cm.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(function (e,tp,eg,ep,ev,re,r,rp)
return not cm.con(e,tp,eg,ep,ev,re,r,rp) and vgf.VMonsterCondition(e)
return vgf.DarkWing(e) and vgf.VMonsterCondition(e)
end)
e2:SetValue(function (e,tc)
return tc:IsLevelBelow(1) and vgf.RMonsterFilter(tc)
......@@ -25,18 +25,6 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
vgd.EffectTypeTrigger(c,m,nil,EFFECT_TYPE_SINGLE,EVENT_SPSUMMON_SUCCESS,cm.op,nil,vgf.VSummonCondition)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local a=vgf.IsExistingMatchingCard(cm.filter1,tp,LOCATION_LOCK,0,1,nil)
local b=vgf.IsExistingMatchingCard(cm.filter2,tp,LOCATION_LOCK,0,1,nil)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)
return not a and b
end
function cm.filter1(c)
return c:GetLevel()%2==1
end
function cm.filter2(c)
return c:GetLevel()%2==0
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,1)
vgf.Sendto(LOCATION_LOCK,g,POS_FACEUP,REASON_EFFECT)
......
......@@ -3,21 +3,9 @@ local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)-【永】【R/G】:这个单位的力量+2000、盾护+5000。
vgd.EffectTypeContinuousChangeAttack(c,m,EFFECT_TYPE_SINGLE,2000,cm.con1)
vgd.EffectTypeContinuousChangeDefense(c,m,EFFECT_TYPE_SINGLE,5000,cm.con2)
vgd.EffectTypeContinuousChangeAttack(c,m,EFFECT_TYPE_SINGLE,2000,cm.con)
vgd.EffectTypeContinuousChangeDefense(c,m,EFFECT_TYPE_SINGLE,5000,vgf.WhiteWing)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return cm.con2(e,tp,eg,ep,ev,re,r,rp) and vgf.RMonsterCondition(e)
end
function cm.con2(e,tp,eg,ep,ev,re,r,rp)
local a=vgf.IsExistingMatchingCard(cm.filter1,tp,LOCATION_LOCK,0,1,nil)
local b=vgf.IsExistingMatchingCard(cm.filter2,tp,LOCATION_LOCK,0,1,nil)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)
return not a and b
end
function cm.filter1(c)
return c:GetLevel()%2==1
end
function cm.filter2(c)
return c:GetLevel()%2==0
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return vgf.WhiteWing(e) and vgf.RMonsterCondition(e)
end
\ No newline at end of file
......@@ -15,17 +15,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return eg:IsContains(c) and cm.con1(e,tp,eg,ep,ev,re,r,rp) and vgf.RMonsterCondition(e)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
local a=vgf.IsExistingMatchingCard(cm.filter1,tp,LOCATION_LOCK,0,1,nil)
local b=vgf.IsExistingMatchingCard(cm.filter2,tp,LOCATION_LOCK,0,1,nil)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)
return not a and b
end
function cm.filter1(c)
return c:GetLevel()%2==1
end
function cm.filter2(c)
return c:GetLevel()%2==0
return eg:IsContains(c) and vgf.WhiteWing(e) and vgf.RMonsterCondition(e)
end
\ No newline at end of file
......@@ -7,18 +7,5 @@ function cm.initial_effect(c)
vgd.EffectTypeContinuousChangeAttack(c,m,EFFECT_TYPE_SINGLE,10000,cm.con)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return cm.con1(e,tp,eg,ep,ev,re,r,rp) and Duel.GetTurnPlayer()==tp and vgf.RMonsterCondition(e)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
local a=vgf.IsExistingMatchingCard(cm.filter1,tp,LOCATION_LOCK,0,1,nil)
local b=vgf.IsExistingMatchingCard(cm.filter2,tp,LOCATION_LOCK,0,1,nil)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)
return not a and b
end
function cm.filter1(c)
return c:GetLevel()%2==1
end
function cm.filter2(c)
return c:GetLevel()%2==0
return vgf.WhiteWing(e) and Duel.GetTurnPlayer()==tp and vgf.RMonsterCondition(e)
end
\ No newline at end of file
......@@ -10,7 +10,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return VgF.GetVMonster(tp):IsCode(10501002)
end
function cm.filter(c)
return c:GetLevel()%2==0
return c:GetLevel()%2==1
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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