Commit 1317bb01 authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 4d137836
No preview for this file type
......@@ -21,7 +21,6 @@ function c65060017.initial_effect(c)
--inoshikacho
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1)
......@@ -45,21 +44,17 @@ function c65060017.cost(e,tp,eg,ep,ev,re,r,rp,chk)
c:RegisterEffect(e1)
end
function c65060017.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(1-tp,1) end
Duel.SetTargetPlayer(tp)
if chk==0 then return Duel.IsPlayerCanDraw(1-tp,1) and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1)
end
function c65060017.operation(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local h=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
if h<1 then return end
Duel.Draw(1-tp,1,REASON_EFFECT)
Duel.BreakEffect()
local g=Duel.GetFieldGroup(p,0,LOCATION_HAND)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if g:GetCount()>0 then
local sg=g:RandomSelect(p,1)
local sg=g:RandomSelect(1-tp,1)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
local tc=sg:GetFirst()
if tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(c65060017.spfil,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
......
......@@ -21,9 +21,12 @@ function c65060019.initial_effect(c)
e2:SetOperation(c65060019.thop)
c:RegisterEffect(e2)
end
function c65060019.tgsfil(c)
return c:GetAttack()~=c:GetBaseAttack() and c:IsFaceup()
end
function c65060019.atktar(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsPosition(POS_FACEUP) end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c65060019.tgsfil(chkc) end
if chk==0 then return Duel.IsExistingTarget(c65060019.tgsfil,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,g,1,0,0)
end
......
......@@ -60,7 +60,7 @@ function c65060022.disop(e,tp,eg,ep,ev,re,r,rp)
end
function c65060022.filtern(c)
return c:IsFaceup() and c:IsSetCard(0x6da4)
return c:IsFaceup() and c:IsSetCard(0x6da4) and not c:IsType(TYPE_LINK)
end
function c65060022.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c65060022.filtern(chkc) 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