Commit aa532cc4 authored by DailyShana's avatar DailyShana

fix

parent 28d0bdf5
...@@ -28,19 +28,19 @@ end ...@@ -28,19 +28,19 @@ 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) function c52022648.costfilter(c,ec)
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)
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,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c52022648.costfilter,tp,LOCATION_HAND,0,1,nil,e:GetHandler()) end
Duel.DiscardHand(tp,c52022648.costfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c52022648.costfilter,1,1,REASON_COST+REASON_DISCARD,nil,e:GetHandler())
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)
end end
function c52022648.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) function c52022648.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
and Duel.IsExistingMatchingCard(c52022648.eqfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_EQUIP,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
end end
function c52022648.eqop(e,tp,eg,ep,ev,re,r,rp) function c52022648.eqop(e,tp,eg,ep,ev,re,r,rp)
......
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