Commit 94956208 authored by wind2009's avatar wind2009 Committed by GitHub

Fix Fabled Kushano & The Fabled Chawa (#2518)

parent 46b78663
...@@ -29,8 +29,7 @@ function c29905795.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,8 +29,7 @@ function c29905795.op(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local tc=g:Select(tp,1,1,nil):GetFirst() local tc=g:Select(tp,1,1,nil):GetFirst()
if tc and Duel.SendtoGrave(tc,REASON_EFFECT+REASON_DISCARD)>0 and tc:IsLocation(LOCATION_GRAVE) if tc and Duel.SendtoGrave(tc,REASON_EFFECT+REASON_DISCARD)>0 and c:IsRelateToEffect(e) then
and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -12,7 +12,8 @@ function c97439806.initial_effect(c) ...@@ -12,7 +12,8 @@ function c97439806.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c97439806.costfilter(c) function c97439806.costfilter(c)
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and not c:IsCode(97439806) and c:IsDiscardable() return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and not c:IsCode(97439806)
and c:IsDiscardable() and c:IsAbleToGraveAsCost()
end end
function c97439806.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c97439806.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c97439806.costfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c97439806.costfilter,tp,LOCATION_HAND,0,1,nil) 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