Commit 39989f2b authored by Tachibana's avatar Tachibana

1145141919810

parent f35d0a1b
Pipeline #15090 passed with stages
in 37 minutes and 41 seconds
......@@ -73,7 +73,7 @@ end
function cm.negop(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.GetMatchingGroup(cm.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local rc=re:GetHandler()
if Duel.NegateEffect(ev) and rc:IsRelateToEffect(re) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) and g2:GetCount()>0 then
if Duel.NegateEffect(ev) and rc:IsRelateToEffect(e) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) and g2:GetCount()>0 then
rc:CancelToGrave()
Duel.Hint(HINTMSG_SELECT,tp,HINTMSG_FACEUP)
local oc=g2:Select(tp,1,1,nil):GetFirst()
......
......@@ -31,7 +31,7 @@ function cm.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAttack(1200) and c:IsLevel(4) and c:IsRace(RACE_SPELLCASTER) and c:IsAbleToHand()
end
function cm.filter2(c)
return c:IsAbleToRemove() and c:IsSetCard(0x852)
return c:IsAbleToRemove() and c:IsSetCard(0x852) and c:IsType(TYPE_MONSTER)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)==0
......
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