Commit 1aa0a790 authored by DailyShana's avatar DailyShana

fix

parent aa532cc4
...@@ -28,13 +28,13 @@ end ...@@ -28,13 +28,13 @@ end
function c52022648.tgval(e,re,rp) function c52022648.tgval(e,re,rp)
return re:IsActiveType(TYPE_SPELL) return re:IsActiveType(TYPE_SPELL)
end end
function c52022648.costfilter(c,ec) function c52022648.costfilter(c,ec,tp)
return c:IsType(TYPE_SPELL) and c:IsDiscardable() return c:IsType(TYPE_SPELL) and c:IsDiscardable()
and Duel.IsExistingMatchingCard(c52022648.eqfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,c,ec) and Duel.IsExistingMatchingCard(c52022648.eqfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,c,ec)
end end
function c52022648.eqcost(e,tp,eg,ep,ev,re,r,rp,chk) function c52022648.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c52022648.costfilter,tp,LOCATION_HAND,0,1,nil,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c52022648.costfilter,tp,LOCATION_HAND,0,1,nil,e:GetHandler(),tp) end
Duel.DiscardHand(tp,c52022648.costfilter,1,1,REASON_COST+REASON_DISCARD,nil,e:GetHandler()) Duel.DiscardHand(tp,c52022648.costfilter,1,1,REASON_COST+REASON_DISCARD,nil,e:GetHandler(),tp)
end end
function c52022648.eqfilter(c,ec) function c52022648.eqfilter(c,ec)
return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec) return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec)
......
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