Commit f57fe547 authored by mercury233's avatar mercury233

fix

parent 41b2adee
......@@ -15,7 +15,7 @@ function c100423027.initial_effect(c)
c:RegisterEffect(e1)
end
function c100423027.filter(c)
return c.synmat_syn and c:IsFaceup()
return (c.synmat_syn or c:IsCode(7841112,24696097,97489701,67030233,25165047,21123811,26268488,35952884,97836203,62242678,36857073,89907227,80896940,51447164,74892653,89474727,9753964,2743001,50954680,84305651)) and c:IsFaceup()
end
function c100423027.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100423027.filter,tp,LOCATION_MZONE,0,1,nil) and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) and rp==1-tp
......
......@@ -26,6 +26,7 @@ function c101011069.initial_effect(c)
e3:SetCode(EFFECT_MUST_ATTACK)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(0,LOCATION_MZONE)
e3:SetCondition(c101011069.effcon)
c:RegisterEffect(e3)
--only attack monster
local e4=Effect.CreateEffect(c)
......@@ -33,6 +34,7 @@ function c101011069.initial_effect(c)
e4:SetCode(EFFECT_ONLY_ATTACK_MONSTER)
e4:SetRange(LOCATION_SZONE)
e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetCondition(c101011069.effcon)
e4:SetValue(aux.ctg)
c:RegisterEffect(e4)
--draw
......@@ -59,6 +61,7 @@ end
function c101011069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c101011069.cfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c101011069.cfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c101011069.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c101011069.activate(e,tp,eg,ep,ev,re,r,rp)
......@@ -68,6 +71,9 @@ function c101011069.activate(e,tp,eg,ep,ev,re,r,rp)
c:SetCardTarget(tc)
end
end
function c101011069.effcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFirstCardTarget()~=nil
end
function c101011069.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousControler()==tp
......
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