Commit 0b44a14a authored by Tachibana's avatar Tachibana

tnndx

parent c55e5f6c
...@@ -96,7 +96,7 @@ function c21520140.reset(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,7 +96,7 @@ function c21520140.reset(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c21520140.thfilter(c) function c21520140.thfilter(c)
return c:IsAbleToHand() and c:IsSetCard(0x5491) and c:IsType(TYPE_MONSTER) return c:IsAbleToHand() and c:IsSetCard(0x5491)
end end
function c21520140.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21520140.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
......
...@@ -65,8 +65,9 @@ function cm.initial_effect(c) ...@@ -65,8 +65,9 @@ function cm.initial_effect(c)
e5:SetCode(EFFECT_DRAW_COUNT) e5:SetCode(EFFECT_DRAW_COUNT)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetRange(LOCATION_FZONE) e5:SetRange(LOCATION_FZONE)
e5:SetCondition(cm.drcon)
e5:SetTargetRange(1,1) e5:SetTargetRange(1,1)
e5:SetValue(cm.drval) e5:SetValue(2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--recover --recover
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
...@@ -142,15 +143,10 @@ function cm.sumval(e,c) ...@@ -142,15 +143,10 @@ function cm.sumval(e,c)
local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer()) local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer())
return c:IsControler(sp) return c:IsControler(sp)
end end
function cm.drval(e) function cm.drcon(e,tp)
local tp=Duel.GetTurnPlayer() local tp=Duel.GetTurnPlayer()
local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer()) local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer())
local dr=Duel.GetDrawCount(tp) return tp==1-sp
if tp==1-sp then
return 2
else
return dr
end
end end
function cm.rmcon(e,tp,eg,ep,ev,re,r,rp) function cm.rmcon(e,tp,eg,ep,ev,re,r,rp)
local sp=cm.GetNorthPlayer(e:GetHandler(),tp) local sp=cm.GetNorthPlayer(e:GetHandler(),tp)
......
...@@ -42,7 +42,7 @@ function cm.gf(g,lc) ...@@ -42,7 +42,7 @@ function cm.gf(g,lc)
return g:IsExists(Card.IsRace,1,nil,RACE_SPELLCASTER) return g:IsExists(Card.IsRace,1,nil,RACE_SPELLCASTER)
end end
function cm.LConditionFilter(c,f,lc) function cm.LConditionFilter(c,f,lc)
if c:IsLocation(LOCATION_EXTRA) then return c:IsCanBeLinkMaterial(lc) and (not f or f(c)) and c:IsFaceup() end if c:IsLocation(LOCATION_EXTRA) then return c:IsCanBeLinkMaterial(lc) and (not f or f(c)) and c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) end
return c:IsCanBeLinkMaterial(lc) and (not f or f(c)) return c:IsCanBeLinkMaterial(lc) and (not f or f(c))
end end
function cm.GetLinkMaterials(tp,f,lc) function cm.GetLinkMaterials(tp,f,lc)
......
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