Commit eb09bbec authored by POLYMER's avatar POLYMER

fix

parent ac0504ae
......@@ -22,7 +22,7 @@ function c11513081.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetTarget(c11513081.sptg)
e2:SetOperation(c11513081.spop)
......@@ -31,7 +31,7 @@ function c11513081.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_SZONE,0)
e3:SetTarget(function(e,c)
return c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_TRAP) and c:IsType(TYPE_MONSTER) end)
return c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_TRAP) end)
e3:SetLabelObject(e2)
c:RegisterEffect(e3)
--set
......
......@@ -12,6 +12,8 @@ function c11513082.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(function(e,c)
return c:IsSetCard(0x195) end)
e2:SetValue(function(e)
return (Duel.GetFlagEffect(0,11513082)+Duel.GetFlagEffect(1,11513082))*100 end)
c:RegisterEffect(e2)
......
......@@ -20,12 +20,23 @@ function c11513083.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,29280201)
e2:SetCondition(aux.dscon)
e2:SetCountLimit(1,29280201)
e2:SetCost(c11513083.swcost1)
e2:SetTarget(c11513083.swtg1)
e2:SetOperation(c11513083.swop1)
c:RegisterEffect(e2)
--show
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(11513083,3))
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,29280201)
e2:SetCost(c11513083.swcost2)
e2:SetTarget(c11513083.swtg2)
e2:SetOperation(c11513083.swop2)
c:RegisterEffect(e2)
end
function c11513083.xckfil(c)
return c:IsType(TYPE_MONSTER) and not c:IsPreviousLocation(LOCATION_DECK)
......
......@@ -11,6 +11,12 @@ function c11513084.initial_effect(c)
e1:SetTarget(c11513084.target)
e1:SetOperation(c11513084.activate)
c:RegisterEffect(e1)
--act in set turn
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_QP_ACT_IN_SET_TURN)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
c:RegisterEffect(e2)
end
function c11513084.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x195) and c:IsAbleToHandAsCost()
......@@ -18,7 +24,7 @@ end
function c11513084.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if not c:IsStatus(STATUS_SET_TURN) then return true end
local ct=#{c:IsHasEffect(EFFECT_TRAP_ACT_IN_SET_TURN,tp)}
local ct=#{c:IsHasEffect(EFFECT_QP_ACT_IN_SET_TURN,tp)}
local dis=Duel.IsExistingMatchingCard(c11513084.cfilter,tp,LOCATION_MZONE,0,1,nil)
if chk==0 then return ct>1 or dis end
if ct==1 or dis and Duel.SelectYesNo(tp,aux.Stringid(11513084,0)) then
......
......@@ -42,7 +42,7 @@ function s.initial_effect(c)
e3:SetCondition(s.tgcon1)
e3:SetTarget(s.tdtg)
e3:SetOperation(s.tdop)
c:RegisterEffect(e1)
c:RegisterEffect(e3)
end
function s.matfilter1(c,syncard)
return c:IsTuner(syncard) or c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_FAIRY)
......
......@@ -58,7 +58,7 @@ function c28318460.activate(e,tp,eg,ep,ev,re,r,rp,op)
if tc:IsPreviousLocation(LOCATION_DECK) then
Duel.ShuffleDeck(tp)
end
if not tc:IsLocation(LOCATION_HAND) or Duel.GetLP(tp)<11000 then return end
if not tc:IsLocation(LOCATION_HAND) or Duel.GetLP(tp)<10000 then return end
local te=tc.recover_effect
if not te then return end
local tg=te:GetTarget()
......
......@@ -32,6 +32,7 @@ function c28352281.initial_effect(c)
e3:SetCode(EVENT_CHAINING)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN)
e3:SetCondition(c28352281.recon)
e3:SetTarget(c28352281.retg)
e3:SetOperation(c28352281.reop)
......
......@@ -71,6 +71,7 @@ function cm.initial_effect(c)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(cm.tttcon)
e3:SetTarget(cm.thtg)
e3:SetOperation(cm.thop)
c:RegisterEffect(e3)
......
......@@ -50,6 +50,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(op)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local op=e:GetLabel()
if op==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
......@@ -129,7 +129,7 @@ function c98930407.disop2(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.ConfirmCards(tp,g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tg=g:FilterSelect(tp,aux,TRUE,1,1,nil)
local tg=g:FilterSelect(tp,aux.TRUE,1,1,nil)
if tg:GetCount()>0 then
local tc=tg:GetFirst()
if Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) 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