Commit 8a74bc96 authored by Tachibana's avatar Tachibana

得得得得得

parent 3d9a1fcc
Pipeline #11613 passed with stages
in 32 minutes and 25 seconds
No preview for this file type
...@@ -64,8 +64,8 @@ function c33200721.thfilter(c) ...@@ -64,8 +64,8 @@ function c33200721.thfilter(c)
return c:IsSetCard(0xc32a) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsSetCard(0xc32a) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c33200721.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c33200721.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x32a,2,REASON_COST) end if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x32a,2,REASON_COST) end
Duel.RemoveCounter(tp,1,1,0x32a,2,REASON_COST) e:GetHandler():RemoveCounter(tp,0x32a,2,REASON_COST)
end end
function c33200721.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c33200721.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33200721.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c33200721.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -14,11 +14,11 @@ function cm.initial_effect(c) ...@@ -14,11 +14,11 @@ function cm.initial_effect(c)
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(cm.distarget) e5:SetTarget(cm.distarget)
e5:SetCode(EFFECT_IMMUNE_EFFECT) e5:SetCode(EFFECT_IMMUNE_EFFECT)
e5:SetValue(cm.efilter) e5:SetValue(cm.efilter)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--negate --negate
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetCondition(cm.spcon) e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg) e1:SetTarget(cm.sptg)
......
...@@ -40,10 +40,9 @@ end ...@@ -40,10 +40,9 @@ end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if not a:IsControler(tp) then local d=a:GetBattleTarget()
a=Duel.GetAttackTarget() if a:IsControler(1-tp) then a,d=d,a end
end return a and a:IsType(TYPE_LINK) and d and a:IsRelateToBattle() and d:IsRelateToBattle() and a:GetControler()~=d:GetControler()
return a and a:IsType(TYPE_LINK)
end end
function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk)
local b2=Duel.IsExistingMatchingCard(cm.mvfilter2,tp,LOCATION_MZONE,0,1,nil,tp) local b2=Duel.IsExistingMatchingCard(cm.mvfilter2,tp,LOCATION_MZONE,0,1,nil,tp)
...@@ -51,9 +50,8 @@ function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,9 +50,8 @@ function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.mvop(e,tp,eg,ep,ev,re,r,rp) function cm.mvop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if not a:IsControler(1-tp) then local d=a:GetBattleTarget()
a=Duel.GetAttackTarget() if a:IsControler(1-tp) then a,d=d,a end
end
if Duel.IsExistingMatchingCard(cm.mvfilter2,tp,LOCATION_MZONE,0,1,nil,tp) then if Duel.IsExistingMatchingCard(cm.mvfilter2,tp,LOCATION_MZONE,0,1,nil,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g1=Duel.SelectMatchingCard(tp,cm.mvfilter2,tp,LOCATION_MZONE,0,1,1,nil,tp) local g1=Duel.SelectMatchingCard(tp,cm.mvfilter2,tp,LOCATION_MZONE,0,1,1,nil,tp)
...@@ -65,13 +63,14 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,13 +63,14 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g2) Duel.HintSelection(g2)
local tc2=g2:GetFirst() local tc2=g2:GetFirst()
Duel.SwapSequence(tc1,tc2) Duel.SwapSequence(tc1,tc2)
if a then if e:GetHandler():IsRelateToEffect(e) and d:IsFaceup() and d:IsRelateToBattle() then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(a:GetBaseAttack()) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetValue(d:GetBaseAttack())
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL)
a:RegisterEffect(e1) d:RegisterEffect(e1)
end end
end end
end end
......
...@@ -17,8 +17,8 @@ function c85400015.fl2(c) ...@@ -17,8 +17,8 @@ function c85400015.fl2(c)
return c:IsCanBeXyzMaterial(nil) and c:IsCode(85400000) return c:IsCanBeXyzMaterial(nil) and c:IsCode(85400000)
end end
function c85400015.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c85400015.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c85400015.fl1(chkc) end if chkc then return c85400015.fl1(chkc) end
if chk==0 then return Duel.IsExistingTarget(c85400015.fl1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(c85400015.fl2,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c85400015.fl1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c85400015.fl2,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectTarget(tp,c85400015.fl1,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c85400015.fl1,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
......
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