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)
return c:IsSetCard(0xc32a) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
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
Duel.RemoveCounter(tp,1,1,0x32a,2,REASON_COST)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x32a,2,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0x32a,2,REASON_COST)
end
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
......
......@@ -14,11 +14,11 @@ function cm.initial_effect(c)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetRange(LOCATION_MZONE)
e5:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(cm.distarget)
e5:SetCode(EFFECT_IMMUNE_EFFECT)
e5:SetValue(cm.efilter)
c:RegisterEffect(e5)
c:RegisterEffect(e5)
--negate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1:SetRange(LOCATION_HAND)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
......
......@@ -40,10 +40,9 @@ end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
if not a:IsControler(tp) then
a=Duel.GetAttackTarget()
end
return a and a:IsType(TYPE_LINK)
local d=a:GetBattleTarget()
if a:IsControler(1-tp) then a,d=d,a end
return a and a:IsType(TYPE_LINK) and d and a:IsRelateToBattle() and d:IsRelateToBattle() and a:GetControler()~=d:GetControler()
end
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)
......@@ -51,9 +50,8 @@ function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.mvop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
if not a:IsControler(1-tp) then
a=Duel.GetAttackTarget()
end
local d=a:GetBattleTarget()
if a:IsControler(1-tp) then a,d=d,a end
if Duel.IsExistingMatchingCard(cm.mvfilter2,tp,LOCATION_MZONE,0,1,nil,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
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)
Duel.HintSelection(g2)
local tc2=g2:GetFirst()
Duel.SwapSequence(tc1,tc2)
if a then
local e1=Effect.CreateEffect(e:GetHandler())
if e:GetHandler():IsRelateToEffect(e) and d:IsFaceup() and d:IsRelateToBattle() then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
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)
a:RegisterEffect(e1)
d:RegisterEffect(e1)
end
end
end
......
......@@ -17,8 +17,8 @@ function c85400015.fl2(c)
return c:IsCanBeXyzMaterial(nil) and c:IsCode(85400000)
end
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 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 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.IsExistingMatchingCard(c85400015.fl2,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectTarget(tp,c85400015.fl1,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
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