Commit dda4da9b authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 5d2d5f0d
No preview for this file type
Duel.LoadScript("c12048000.lua")
--永远的证明 玛莉梅娜
local m=12048022
local cm=_G["c"..m]
cm.srre_front_side=12048021
cm.srre_back_side=12048022
function cm.initial_effect(c)
--immune
local e1=srre.immuneffect(c,1)
--
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_DRAW)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
--back
local e3=srre.backeffect(c)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and r==REASON_RULE
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tt=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(1-tp,tt) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,tt)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local tt=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
Duel.DiscardDeck(1-tp,tt,REASON_EFFECT)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_DRAW)
e2:SetReset(RESET_PHASE+PHASE_END,1)
e2:SetTargetRange(0,1)
Duel.RegisterEffect(e2,tp)
local e3=Effect.CreateEffect(e:GetHandler())
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PREDRAW)
e3:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e3:SetCountLimit(1)
e3:SetCondition(cm.recon)
e3:SetOperation(cm.reop)
Duel.RegisterEffect(e3,tp)
end
function cm.recon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function cm.reop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,nil)
if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
Duel.ShuffleDeck(1-tp)
end
end
\ No newline at end of file
Duel.LoadScript("c12048000.lua")
--享乐的不死者 亚希娅
local m=12048023
local cm=_G["c"..m]
cm.srre_front_side=12048020
cm.srre_back_side=12048023
function cm.initial_effect(c)
--immune
local e1=srre.immuneffect(c,1)
--qe
local e2=srre.negateeffect(c,m,{m,0},CATEGORY_NEGATE,LOCATION_MZONE,nil,cm.necon,cm.cost,cm.netg,cm.neop)
--back
local e3=srre.backeffect(c)
end
function cm.necon(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function cm.costfilter(c)
return c:IsAbleToDeckAsCost() and srre.check_set_HakaShiro(c)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,5,nil) end
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_GRAVE,0,5,5,nil)
Duel.SendtoDeck(g,nil,1,REASON_COST)
end
function cm.netg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end
function cm.neop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
end
......@@ -45,7 +45,7 @@ function c33401309.thop2(e,tp,eg,ep,ev,re,r,rp)
end
function c33401309.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c33401309.matfilter,tp,LOCATION_EXTRA,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c33401309.matfilter,tp,LOCATION_EXTRA,0,1,nil) end
end
function c33401309.cpop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
This diff is collapsed.
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