Commit 8c301a9b authored by mercury233's avatar mercury233

fix

parent 069eceb1
......@@ -5,6 +5,11 @@ function c100426021.initial_effect(c)
aux.AddCodeList(c,22702055)
--code
aux.EnableChangeCode(c,22702055,LOCATION_SZONE+LOCATION_GRAVE)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -43,12 +43,12 @@ end
function c101107023.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
end
function c101107023.cfilter(c,tp)
function c101107023.sumcfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_WINDBEAST) and c:IsType(TYPE_MONSTER) and c:IsSummonPlayer(tp)
end
function c101107023.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
and eg:IsExists(c101107023.cfilter,1,nil,tp)
and eg:IsExists(c101107023.sumcfilter,1,nil,tp)
end
function c101107023.filter(c)
return c:IsSetCard(0x12d) and c:IsType(TYPE_MONSTER) and c:IsSummonable(true,nil)
......
......@@ -2,6 +2,7 @@
--
--Script by JoyJ
function c101107054.initial_effect(c)
aux.AddCodeList(c,40352445,101107035)
local e1=aux.AddRitualProcGreater2(c,c101107054.filter,LOCATION_HAND+LOCATION_GRAVE,c101107054.mfilter)
local e2=e1:Clone()
e2:SetCountLimit(1,101107054+EFFECT_COUNT_CODE_OATH)
......
......@@ -62,6 +62,7 @@ end
function c101107059.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsCanRemoveCounter(tp,0x160,1,REASON_COST) end
c:RemoveCounter(tp,0x160,1,REASON_COST)
end
function c101107059.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) 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