Commit 85370fa6 authored by POLYMER's avatar POLYMER

fix

parent 9a761604
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e3:SetOperation(cm.spop)
c:RegisterEffect(e3)
cm.hand_effect=cm.hand_effect or {}
cm.hand_effect[c]=e3
cm.hand_effect[c]=e3
--change effect
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......@@ -61,14 +61,14 @@ function cm.chktg(e,te,tp)
return true
end
function cm.check0(e,tp,eg,ep,ev,re,r,rp)
local re=e:GetLabelObject()
local tg=re:GetTarget()
local te=e:GetLabelObject()
local tg=te:GetTarget()
if tg then
function Card.IsCanBeSpecialSummoned(c,e,st,...)
if st&SUMMON_TYPE_RITUAL>0 then cm[1]=true end
return _IsCanBeSpecialSummoned(c,e,st,...)
end
tg(e,tp,eg,ep,ev,re,r,rp,0)
pcall(tg,te,te:GetHandlerPlayer(),eg,ep,ev,re,r,rp,0)
--Card.IsCanBeSpecialSummoned=_IsCanBeSpecialSummoned
if cm[1] then cm[re]=true end
cm[1]=nil
......@@ -238,7 +238,7 @@ function cm.returntofield(tc)
Duel.BreakEffect()
end
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
return
return
end
if tc:GetPreviousTypeOnField()&TYPE_EQUIP>0 then
Duel.SendtoGrave(tc,REASON_RULE+REASON_RETURN)
......
--人理之基 隐藏不贞的头盔
function c22021280.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_CONTROL+CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22021280+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c22021280.target)
e1:SetOperation(c22021280.activate)
c:RegisterEffect(e1)
end
function c22021280.ddfilter(c)
return c:IsFaceup() and c:IsSetCard(0xff9)
end
function c22021280.sfilter(c,e,tp)
return c:IsCode(22021260) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function c22021280.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c22021280.ddfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c22021280.ddfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,c22021280.ddfilter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c22021280.activate(e,tp,eg,ep,ev,re,r,rp)
local g,p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
g=g:Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 and Duel.GetControl(g,1-tp)>0 then
local sc=Duel.GetFirstMatchingCard(c22021280.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if sc and Duel.SelectYesNo(tp,aux.Stringid(22021280,0)) then
Duel.BreakEffect()
Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(22021280,1))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_CLIENT_HINT)
e1:SetValue(c22021280.evalue)
sc:RegisterEffect(e1)
end
end
end
function c22021280.evalue(e,re,rp)
return re:IsActiveType(TYPE_SPELL) and re:IsActiveType(TYPE_EQUIP)
end
\ No newline at end of file
......@@ -18,7 +18,7 @@ function c65810120.initial_effect(c)
c:RegisterEffect(e3)
--negate
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,2))
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_DISABLE+CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_CHAIN_SOLVING)
......@@ -48,14 +48,14 @@ end
function c65810120.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=re:GetHandler()
if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(65810120,3)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(65810120,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local tc=Duel.SelectMatchingCard(tp,c65810120.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c):GetFirst()
local tc=Duel.SelectMatchingCard(tp,c65810120.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1):GetFirst()
if tc and Duel.Release(tc,REASON_EFFECT) then
Duel.Hint(HINT_CARD,0,id)
Duel.NegateEffect(ev)
Duel.Destroy(rc,REASON_EFFECT)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65810120,4))
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65810120,2))
end
end
end
......
......@@ -13,6 +13,7 @@ function s.initial_effect(c)
--field
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
......
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