Commit 2b358ef9 authored by VanillaSalt's avatar VanillaSalt

fix

parent 1efadfd6
...@@ -38,7 +38,7 @@ function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c20403123.desfilter(c) function c20403123.filter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
end end
function c20403123.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c20403123.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -24,13 +24,16 @@ function c55553602.initial_effect(c) ...@@ -24,13 +24,16 @@ function c55553602.initial_effect(c)
e3:SetOperation(c55553602.operation) e3:SetOperation(c55553602.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c55553602.atkfilter(c)
return c:IsFaceup() and c:GetRace()~=0
end
function c55553602.atkvalue(e,c) function c55553602.atkvalue(e,c)
local g=Duel.GetMatchingGroup(Card.IsFaceup,c:GetControler(),LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c55553602.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)
local ct=g:GetClassCount(Card.GetRace) local ct=g:GetClassCount(Card.GetRace)
return ct*200 return ct*200
end end
function c55553602.confilter(c) function c55553602.confilter(c)
return c:IsFaceup() and c:IsSetCard(0x9f) return c:IsFaceup() and c:IsSetCard(0x9f) and c:GetRace()~=0
end end
function c55553602.condition(e,tp,eg,ep,ev,re,r,rp) function c55553602.condition(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c55553602.confilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c55553602.confilter,tp,LOCATION_MZONE,0,nil)
......
...@@ -33,6 +33,7 @@ function c67808837.initial_effect(c) ...@@ -33,6 +33,7 @@ function c67808837.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_UPDATE_ATTACK) e4:SetCode(EFFECT_UPDATE_ATTACK)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCondition(c67808837.atkcon) e4:SetCondition(c67808837.atkcon)
e4:SetValue(c67808837.atkval) e4:SetValue(c67808837.atkval)
......
...@@ -26,4 +26,4 @@ function c92170894.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,4 +26,4 @@ function c92170894.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
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