Commit 1e733614 authored by mercury233's avatar mercury233 Committed by GitHub

fix ドラグニティアームズ-グラム

https://ygocdb.com/faq/23065
parent 3b184fc9
......@@ -52,11 +52,15 @@ function c53184342.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c53184342.disfilter(c,eq)
return aux.NegateMonsterFilter(c) or eq and c:IsFaceup() and c:GetAttack()>0
end
function c53184342.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and aux.NegateMonsterFilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.NegateMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
local eq=Duel.IsExistingMatchingCard(c53184342.eqfilter,tp,LOCATION_ONFIELD,0,1,nil)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c53184342.disfilter(chkc,eq) end
if chk==0 then return Duel.IsExistingTarget(c53184342.disfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,eq) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
Duel.SelectTarget(tp,aux.NegateMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SelectTarget(tp,c53184342.disfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,eq)
end
function c53184342.eqfilter(c)
return (c:IsFaceup() or c:GetEquipTarget()) and c:IsType(TYPE_EQUIP)
......
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