Commit 097d5761 authored by mercury233's avatar mercury233 Committed by GitHub

ruling

parent 143ed753
...@@ -78,10 +78,10 @@ function c35606858.dccost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,10 +78,10 @@ function c35606858.dccost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c35606858.cfilter(c,e,tp) function c35606858.cfilter(c,e,tp)
return c:IsRace(RACE_FIEND) and c:IsType(TYPE_MONSTER) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) return c:IsRace(RACE_FIEND) and c:IsType(TYPE_MONSTER) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
and (c:IsAbleToHand() or c:IsAbleToDeck() or (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))) and (c:IsAbleToHand() or c:IsAbleToDeck() or Duel.GetLocationCount(tp,LOCATION_MZONE)>0)
end end
function c35606858.dctg(e,tp,eg,ep,ev,re,r,rp,chk) function c35606858.dctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c35606858.cfilter,1,nil,e,tp) end if chk==0 then return Duel.IsPlayerCanSpecialSummon(tp) and eg:IsExists(c35606858.cfilter,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end end
function c35606858.dcop(e,tp,eg,ep,ev,re,r,rp) function c35606858.dcop(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