Commit f03e7932 authored by xiaoye's avatar xiaoye

fix

parent a1854b43
...@@ -17,5 +17,5 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,5 +17,5 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.con2(e,tp,eg,ep,ev,re,r,rp) function cm.con2(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
return VgF.GetValueType(ct)=="number" and ct==10102001 and vgf.VMonsterCondition(e) return vgf.GetValueType(ct)=="number" and ct==10102001 and vgf.VMonsterCondition(e)
end end
\ No newline at end of file
...@@ -6,7 +6,7 @@ function cm.initial_effect(c) ...@@ -6,7 +6,7 @@ function cm.initial_effect(c)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
return VgF.GetValueType(ct)=="number" and ct==10102001 return vgf.GetValueType(ct)=="number" and ct==10102001
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -8,7 +8,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -8,7 +8,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
vgf.OverlayFill(1) vgf.OverlayFill(1)
Duel.BreakEffect() Duel.BreakEffect()
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
if VgF.GetValueType(ct)=="number" and ct==10102001 and vgf.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_DAMAGE,0,1,nil) and Duel.SelectEffectYesNo(tp,vgf.stringid(VgID,10)) then if vgf.GetValueType(ct)=="number" and ct==10102001 and vgf.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_DAMAGE,0,1,nil) and Duel.SelectEffectYesNo(tp,vgf.stringid(VgID,10)) then
local g=vgf.SelectMatchingCard(HINTMSG_DAMAGE,e,tp,Card.IsFaceup,tp,LOCATION_DAMAGE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_DAMAGE,e,tp,Card.IsFaceup,tp,LOCATION_DAMAGE,0,1,1,nil)
Duel.ChangePosition(g,POS_FACEDOWN_ATTACK) Duel.ChangePosition(g,POS_FACEDOWN_ATTACK)
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
......
...@@ -7,7 +7,7 @@ end ...@@ -7,7 +7,7 @@ end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local num=1 local num=1
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
if VgF.GetValueType(ct)=="number" and ct==10102001 then num=num+1 end if vgf.GetValueType(ct)=="number" and ct==10102001 then num=num+1 end
vgf.OverlayFill(num)(e,tp,eg,ep,ev,re,r,rp) vgf.OverlayFill(num)(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.con1(e,tp,eg,ep,ev,re,r,rp) function cm.con1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -3,7 +3,7 @@ function cm.initial_effect(c) ...@@ -3,7 +3,7 @@ function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
vgd.ContinuousSpell(c) vgd.ContinuousSpell(c)
vgd.EffectTypeTrigger(c,m,loc,EFFECT_TYPE_SINGLE,EVENT_MOVE,vgf.OverlayFill(3),nil,cm.con) vgd.EffectTypeTrigger(c,m,loc,EFFECT_TYPE_SINGLE,EVENT_MOVE,vgf.OverlayFill(3),nil,cm.con)
VgD.CallInPrison(c,m) vgd.CallInPrison(c,m)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return vgf.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return vgf.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -11,7 +11,7 @@ function cm.checkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -11,7 +11,7 @@ function cm.checkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
return VgF.GetValueType(ct)=="number" and ct==10102001 return vgf.GetValueType(ct)=="number" and ct==10102001
end end
function cm.con1(e,tp,eg,ep,ev,re,r,rp) function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,m)>0 and cm.con(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFlagEffect(tp,m)>0 and cm.con(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -19,5 +19,5 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,5 +19,5 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
return VgF.GetValueType(ct)=="number" and ct==10102001 and vgf.RMonsterCondition(e) return vgf.GetValueType(ct)=="number" and ct==10102001 and vgf.RMonsterCondition(e)
end end
\ No newline at end of file
...@@ -5,11 +5,11 @@ function cm.initial_effect(c) ...@@ -5,11 +5,11 @@ function cm.initial_effect(c)
--通过【费用】[使用1张以上的你希望的张数的卡进行计数爆发]施放! --通过【费用】[使用1张以上的你希望的张数的卡进行计数爆发]施放!
--由于这个费用支付的计数爆发1每有1张,选择对手的1张后防者,退场。 --由于这个费用支付的计数爆发1每有1张,选择对手的1张后防者,退场。
vgd.SpellActivate(c,m,cm.op,cm.cost) vgd.SpellActivate(c,m,cm.op,cm.cost)
VgF.AddMixCostGroupFrom(c,m,"LOCATION_DAMAGE") vgf.AddMixCostGroupFrom(c,m,"LOCATION_DAMAGE")
VgF.AddMixCostGroupTo(c,m,"POSCHANGE") vgf.AddMixCostGroupTo(c,m,"POSCHANGE")
VgF.AddMixCostGroupFilter(c,m,Card.IsFaceup) vgf.AddMixCostGroupFilter(c,m,Card.IsFaceup)
VgF.AddMixCostGroupCountMin(c,m,1) vgf.AddMixCostGroupCountMin(c,m,1)
VgF.AddMixCostGroupCountMax(c,m,100) vgf.AddMixCostGroupCountMax(c,m,100)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=vgf.GetMatchingGroupCount(Card.IsFaceup,tp,LOCATION_DAMAGE,0,nil) local ct=vgf.GetMatchingGroupCount(Card.IsFaceup,tp,LOCATION_DAMAGE,0,nil)
......
...@@ -14,5 +14,5 @@ end ...@@ -14,5 +14,5 @@ end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,tp,nil,tp,LOCATION_MZONE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,tp,nil,tp,LOCATION_MZONE,0,1,1,nil)
VgF.AtkUp(c,g,2000,nil) vgf.AtkUp(c,g,2000,nil)
end end
\ No newline at end of file
...@@ -6,5 +6,5 @@ end ...@@ -6,5 +6,5 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,e,tp,vgf.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,e,tp,vgf.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil)
VgF.AtkUp(c,g,10000,nil) vgf.AtkUp(c,g,10000,nil)
end end
\ No newline at end of file
...@@ -9,6 +9,6 @@ end ...@@ -9,6 +9,6 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,e,tp,vgf.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,e,tp,vgf.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil)
local e1=VgF.AtkUp(c,g,30000,nil) local e1=vgf.AtkUp(c,g,30000,nil)
vgf.EffectReset(c,e1,EVENT_BATTLED) vgf.EffectReset(c,e1,EVENT_BATTLED)
end end
\ No newline at end of file
...@@ -2,11 +2,11 @@ local cm,m,o=GetID() ...@@ -2,11 +2,11 @@ local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
vgd.SpellActivate(c,m,cm.op,cm.cost) vgd.SpellActivate(c,m,cm.op,cm.cost)
VgF.AddMixCostGroupFrom(c,m,"LOCATION_OVERLAY") vgf.AddMixCostGroupFrom(c,m,"LOCATION_OVERLAY")
VgF.AddMixCostGroupTo(c,m,"LOCATION_DROP") vgf.AddMixCostGroupTo(c,m,"LOCATION_DROP")
VgF.AddMixCostGroupFilter(c,m,function (tc) return tc:IsLevel(3) end) vgf.AddMixCostGroupFilter(c,m,function (tc) return tc:IsLevel(3) end)
VgF.AddMixCostGroupCountMin(c,m,1) vgf.AddMixCostGroupCountMin(c,m,1)
VgF.AddMixCostGroupCountMax(c,m,1) vgf.AddMixCostGroupCountMax(c,m,1)
end end
function cm.filter(c,p) function cm.filter(c,p)
return c:IsControler(p) and vgf.RMonsterFilter(c) return c:IsControler(p) and vgf.RMonsterFilter(c)
......
...@@ -5,11 +5,11 @@ local cm,m,o=GetID() ...@@ -5,11 +5,11 @@ local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
vgd.SpellActivate(c,m,cm.op,cm.cost) vgd.SpellActivate(c,m,cm.op,cm.cost)
VgF.AddMixCostGroupFrom(c,m,"LOCATION_MZONE") vgf.AddMixCostGroupFrom(c,m,"LOCATION_MZONE")
VgF.AddMixCostGroupTo(c,m,"LOCATION_DROP") vgf.AddMixCostGroupTo(c,m,"LOCATION_DROP")
VgF.AddMixCostGroupFilter(c,m,vgf.RMonsterFilter) vgf.AddMixCostGroupFilter(c,m,vgf.RMonsterFilter)
VgF.AddMixCostGroupCountMin(c,m,2) vgf.AddMixCostGroupCountMin(c,m,2)
VgF.AddMixCostGroupCountMax(c,m,2) vgf.AddMixCostGroupCountMax(c,m,2)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -21,5 +21,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,5 +21,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Draw(tp,1,REASON_TRIGGER) Duel.Draw(tp,1,REASON_TRIGGER)
vgf.Sendto(LOCATION_OVERLAY,c) vgf.Sendto(LOCATION_OVERLAY,c)
VgF.DamageFill(1) vgf.DamageFill(1)
end end
\ No newline at end of file
...@@ -6,7 +6,7 @@ end ...@@ -6,7 +6,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
if VgF.GetValueType(ct)~="number" or ct~=10102001 then return false end if vgf.GetValueType(ct)~="number" or ct~=10102001 then return false end
return eg:GetFirst()==c and Duel.GetAttacker()==vgf.GetVMonster(tp) and vgf.RMonsterCondition(e) return eg:GetFirst()==c and Duel.GetAttacker()==vgf.GetVMonster(tp) and vgf.RMonsterCondition(e)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -5,11 +5,11 @@ function cm.initial_effect(c) ...@@ -5,11 +5,11 @@ function cm.initial_effect(c)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return VgF.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil) return vgf.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g=VgF.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,nil) local g=vgf.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,nil)
return VgF.Sendto(LOCATION_DROP,g,REASON_COST) return vgf.Sendto(LOCATION_DROP,g,REASON_COST)
end end
function cm.filter(c) function cm.filter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_SPELL) return c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_SPELL)
......
...@@ -2,11 +2,11 @@ local cm,m,o=GetID() ...@@ -2,11 +2,11 @@ local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
vgd.SpellActivate(c,m,cm.op,cm.cost) vgd.SpellActivate(c,m,cm.op,cm.cost)
VgF.AddMixCostGroupFilter(c,m,cm.filter) vgf.AddMixCostGroupFilter(c,m,cm.filter)
VgF.AddMixCostGroupCountMin(c,m,1) vgf.AddMixCostGroupCountMin(c,m,1)
VgF.AddMixCostGroupCountMax(c,m,1) vgf.AddMixCostGroupCountMax(c,m,1)
VgF.AddMixCostGroupFrom(c,m,"LOCATION_HAND") vgf.AddMixCostGroupFrom(c,m,"LOCATION_HAND")
VgF.AddMixCostGroupTo(c,m,"LOCATION_DROP") vgf.AddMixCostGroupTo(c,m,"LOCATION_DROP")
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -14,7 +14,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,7 +14,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
if VgF.GetValueType(ct)=="number" and ct==10102001 and c:IsRelateToEffect(e) and c:IsFaceup() then if vgf.GetValueType(ct)=="number" and ct==10102001 and c:IsRelateToEffect(e) and c:IsFaceup() then
vgf.AtkUp(c,c,5000,nil) vgf.AtkUp(c,c,5000,nil)
end end
end end
......
...@@ -8,7 +8,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -8,7 +8,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
vgf.CardsFromTo(REASON_EFFECT,LOCATION_MZONE,LOCATION_HAND,vgf.IsCanBeCalled,1,1,e,tp) vgf.CardsFromTo(REASON_EFFECT,LOCATION_MZONE,LOCATION_HAND,vgf.IsCanBeCalled,1,1,e,tp)
local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION) local ct=Duel.GetFlagEffectLabel(tp,FLAG_CONDITION)
if VgF.GetValueType(ct)=="number" and ct==10102001 then if vgf.GetValueType(ct)=="number" and ct==10102001 then
Duel.BreakEffect() Duel.BreakEffect()
local g=vgf.GetMatchingGroup(vgf.FrontFilter,tp,LOCATION_MZONE,0,nil) local g=vgf.GetMatchingGroup(vgf.FrontFilter,tp,LOCATION_MZONE,0,nil)
vgf.AtkUp(c,g,10000,nil) vgf.AtkUp(c,g,10000,nil)
......
...@@ -12,7 +12,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -12,7 +12,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
VgF.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_MZONE,cm.filter,0,1)(e,tp,eg,ep,ev,re,r,rp) vgf.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_MZONE,cm.filter,0,1)(e,tp,eg,ep,ev,re,r,rp)
-- local g = vgf.SelectMatchingCard(HINTMSG_ATOHAND,e,tp,cm.filter,tp,LOCATION_MZONE,0,0,1,nil) -- local g = vgf.SelectMatchingCard(HINTMSG_ATOHAND,e,tp,cm.filter,tp,LOCATION_MZONE,0,0,1,nil)
-- vgf.Sendto(LOCATION_HAND,g) -- vgf.Sendto(LOCATION_HAND,g)
end end
......
...@@ -14,5 +14,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,5 +14,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c = e:GetHandler() local c = e:GetHandler()
local ct = Duel.GetMatchingGroupCount(nil,tp,LOCATION_ORDER,0,c) local ct = Duel.GetMatchingGroupCount(nil,tp,LOCATION_ORDER,0,c)
local defup = 5000*ct local defup = 5000*ct
VgF.DefUp(c,c,defup) vgf.DefUp(c,c,defup)
end end
\ No newline at end of file
...@@ -18,5 +18,5 @@ function cm.initial_effect(c) ...@@ -18,5 +18,5 @@ function cm.initial_effect(c)
end end
function cm.con(e) function cm.con(e)
local c = e:GetHandler() local c = e:GetHandler()
return VgF.BackFilter(c) return vgf.BackFilter(c)
end end
...@@ -14,5 +14,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,5 +14,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return VgF.RMonsterCondition(e) and eg:IsPreviousLocation(LOCATION_MZONE) return vgf.RMonsterCondition(e) and eg:IsPreviousLocation(LOCATION_MZONE)
end end
...@@ -9,7 +9,7 @@ function cm.initial_effect(c) ...@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
VgF.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_DROP,cm.filter,1,0)(e,tp,eg,ep,ev,re,r,rp) vgf.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_DROP,cm.filter,1,0)(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.con(e) function cm.con(e)
......
...@@ -8,11 +8,11 @@ end ...@@ -8,11 +8,11 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ca = Duel.GetAttacker() local ca = Duel.GetAttacker()
return VgF.VMonsterFilter(ca) and eg:GetFirst()==e:GetHandler() return vgf.VMonsterFilter(ca) and eg:GetFirst()==e:GetHandler()
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
VgF.CardsFromTo(REASON_EFFECT,LOCATION_DROP,LOCATION_HAND,nil,1,1)(e,tp,eg,ep,ev,re,r,rp) vgf.CardsFromTo(REASON_EFFECT,LOCATION_DROP,LOCATION_HAND,nil,1,1)(e,tp,eg,ep,ev,re,r,rp)
end end
\ No newline at end of file
...@@ -5,12 +5,12 @@ function cm.initial_effect(c) ...@@ -5,12 +5,12 @@ function cm.initial_effect(c)
-- 【自】:这个单位被RIDE时,通过【费用】[将手牌中的1张卡放置到灵魂里],从你的牌堆里探寻至多1张宝石卡,公开后加入手牌,然后牌堆洗切。 -- 【自】:这个单位被RIDE时,通过【费用】[将手牌中的1张卡放置到灵魂里],从你的牌堆里探寻至多1张宝石卡,公开后加入手牌,然后牌堆洗切。
vgd.BeRidedByCard(c,m,nil,vgf.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_DECK,cm.filter,1,0),cm.cost1) vgd.BeRidedByCard(c,m,nil,vgf.CardsFromTo(REASON_EFFECT,LOCATION_HAND,LOCATION_DECK,cm.filter,1,0),cm.cost1)
-- 【自】【R】:你施放指令卡时,通过【费用】[灵魂爆发1],这个回合中,这个单位的力量+5000。 -- 【自】【R】:你施放指令卡时,通过【费用】[灵魂爆发1],这个回合中,这个单位的力量+5000。
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_CHAINING,cm.op,VgF.OverlayCost(1),cm.con) vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_CHAINING,cm.op,vgf.OverlayCost(1),cm.con)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
VgF.AtkUp(c,c,5000) vgf.AtkUp(c,c,5000)
end end
end end
function cm.filter(c) function cm.filter(c)
......
...@@ -7,7 +7,7 @@ function cm.initial_effect(c) ...@@ -7,7 +7,7 @@ function cm.initial_effect(c)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return VgF.RMonsterCondition(e) and eg:IsExists(cm.filter,1,nil,tp,c) return vgf.RMonsterCondition(e) and eg:IsExists(cm.filter,1,nil,tp,c)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -16,6 +16,6 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,6 +16,6 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.filter(c,tp,mc) function cm.filter(c,tp,mc)
local g=VgF.GetColumnGroup(mc) local g=vgf.GetColumnGroup(mc)
return g:GetCount()>0 and g:IsContains(c) return g:GetCount()>0 and g:IsContains(c)
end end
\ No newline at end of file
...@@ -8,6 +8,6 @@ end ...@@ -8,6 +8,6 @@ end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
-- 选择你的1张先导者 -- 选择你的1张先导者
local g=vgf.SelectMatchingCard(HINTMSG_VMONSTER,tp,VgF.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_VMONSTER,tp,vgf.VMonsterFilter,tp,LOCATION_MZONE,0,1,1,nil)
vgf.AtkUp(c,g,5000) vgf.AtkUp(c,g,5000)
end end
\ No newline at end of file
...@@ -4,7 +4,7 @@ function cm.initial_effect(c) ...@@ -4,7 +4,7 @@ function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
-- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效) -- 白翼(你的封锁区中的卡只有奇数的等级的场合才有效)
-- 【自】【R】:这个单位支援时,通过【费用】[灵魂爆发2],选择你其他的1个单位,等级是奇数的这个单位以外的单位每有1个,这个回合中,那个单位的力量+5000。 -- 【自】【R】:这个单位支援时,通过【费用】[灵魂爆发2],选择你其他的1个单位,等级是奇数的这个单位以外的单位每有1个,这个回合中,那个单位的力量+5000。
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_CUSTOM+EVENT_SUPPORT,cm.op,VgF.OverlayCost(2),cm.con) vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_CUSTOM+EVENT_SUPPORT,cm.op,vgf.OverlayCost(2),cm.con)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -3,7 +3,7 @@ local cm,m,o=GetID() ...@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
vgd.VgCard(c) vgd.VgCard(c)
-- 【自】:你的回合中这张卡被从手牌舍弃时,通过【费用】[灵魂爆发1],将这张卡CALL到不存在单位的R上。 -- 【自】:你的回合中这张卡被从手牌舍弃时,通过【费用】[灵魂爆发1],将这张卡CALL到不存在单位的R上。
vgd.EffectTypeTrigger(c,m,LOCATION_DROP,EFFECT_TYPE_SINGLE,EVENT_DISCARD,cm.op,VgF.OverlayCost(1),cm.con) vgd.EffectTypeTrigger(c,m,LOCATION_DROP,EFFECT_TYPE_SINGLE,EVENT_DISCARD,cm.op,vgf.OverlayCost(1),cm.con)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -9,7 +9,7 @@ end ...@@ -9,7 +9,7 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,tp,nil,tp,LOCATION_MZONE,0,1,1,nil) local g=vgf.SelectMatchingCard(HINTMSG_ATKUP,tp,nil,tp,LOCATION_MZONE,0,1,1,nil)
VgF.AtkUp(c,g,5000,nil) vgf.AtkUp(c,g,5000,nil)
local rc=vgf.GetVMonster(tp) local rc=vgf.GetVMonster(tp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
c:CancelToGrave() c:CancelToGrave()
......
...@@ -7,7 +7,7 @@ function cm.initial_effect(c) ...@@ -7,7 +7,7 @@ function cm.initial_effect(c)
vgd.QuickSpell(c,cm.op)--,nil,cm.con) vgd.QuickSpell(c,cm.op)--,nil,cm.con)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return VgF.GetVMonster(tp):IsCode(10501002) return vgf.GetVMonster(tp):IsCode(10501002)
end end
function cm.filter(c) function cm.filter(c)
return c:GetLevel()%2==1 return c:GetLevel()%2==1
...@@ -36,7 +36,7 @@ function cm.repfilter(c,tp) ...@@ -36,7 +36,7 @@ function cm.repfilter(c,tp)
end end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) end if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,VgF.Stringid(m,0)) then if Duel.SelectYesNo(tp,vgf.Stringid(m,0)) then
local g=eg:Filter(cm.repfilter,nil,tp) local g=eg:Filter(cm.repfilter,nil,tp)
local ct=g:GetCount() local ct=g:GetCount()
if ct>1 then if ct>1 then
......
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