Commit 0dd66618 authored by Momobako's avatar Momobako

Push by Appveyor

parent ceda8ece
...@@ -64,7 +64,7 @@ function c22240121.xyzop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -64,7 +64,7 @@ function c22240121.xyzop(e,tp,eg,ep,ev,re,r,rp,c)
end end
end end
function c22240121.condition(e,tp,eg,ep,ev,re,r,rp) function c22240121.condition(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) and not bit.band(re:GetActivateLocation(),LOCATION_ONFIELD)~=0 return rp~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) and bit.band(re:GetActivateLocation(),LOCATION_ONFIELD)==0
end end
function c22240121.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c22240121.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end
......
...@@ -42,7 +42,7 @@ function c22241501.filter1(c) ...@@ -42,7 +42,7 @@ function c22241501.filter1(c)
return bit.band(c:GetReason(),REASON_RELEASE)~=0 and c:IsAbleToHand() return bit.band(c:GetReason(),REASON_RELEASE)~=0 and c:IsAbleToHand()
end end
function c22241501.filter2(c,e,tp) function c22241501.filter2(c,e,tp)
return bit.band(c:GetOriginalType(),0x81)==0x81 and c:IsType(TYPE_SPELL) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) return bit.band(c:GetOriginalType(),0x81)==0x81 and c:IsType(TYPE_SPELL) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) and not c:IsType(TYPE_PENDULUM)
end end
function c22241501.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22241501.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return (Duel.GetMatchingGroupCount(c22241501.filter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)>0 or Duel.GetMatchingGroupCount(c22241501.filter2,tp,LOCATION_SZONE,0,nil,e,tp)>0) end if chk==0 then return (Duel.GetMatchingGroupCount(c22241501.filter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)>0 or Duel.GetMatchingGroupCount(c22241501.filter2,tp,LOCATION_SZONE,0,nil,e,tp)>0) 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