Commit a2b73a40 authored by mallu11's avatar mallu11 Committed by GitHub

fix アポクリフォート・キラー and 轟の王 ハール (#1378)

parent 387aa41c
...@@ -78,9 +78,14 @@ end ...@@ -78,9 +78,14 @@ end
function c27279764.adtg(e,c) function c27279764.adtg(e,c)
return c:IsSummonType(SUMMON_TYPE_SPECIAL) return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c27279764.tgfilter(c)
return not c:IsPublic() or c:IsType(TYPE_MONSTER)
end
function c27279764.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c27279764.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE+LOCATION_HAND)>0 end local mc=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,LOCATION_MZONE+LOCATION_HAND) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if chk==0 then return mc>0 or g and g:IsExists(c27279764.tgfilter,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_MZONE+LOCATION_HAND)
end end
function c27279764.tgop(e,tp,eg,ep,ev,re,r,rp) function c27279764.tgop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsType,1-tp,LOCATION_MZONE+LOCATION_HAND,0,nil,TYPE_MONSTER) local g=Duel.GetMatchingGroup(Card.IsType,1-tp,LOCATION_MZONE+LOCATION_HAND,0,nil,TYPE_MONSTER)
......
...@@ -35,8 +35,13 @@ end ...@@ -35,8 +35,13 @@ end
function c68199168.tgcon(e,tp,eg,ep,ev,re,r,rp) function c68199168.tgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DRAW and eg:IsExists(c68199168.cfilter,1,nil,1-tp) return Duel.GetCurrentPhase()~=PHASE_DRAW and eg:IsExists(c68199168.cfilter,1,nil,1-tp)
end end
function c68199168.tgfilter(c)
return not c:IsPublic() or c:IsType(TYPE_MONSTER)
end
function c68199168.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c68199168.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE+LOCATION_HAND)>0 end local mc=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if chk==0 then return mc>0 or g and g:IsExists(c68199168.tgfilter,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_MZONE+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_MZONE+LOCATION_HAND)
end end
function c68199168.tgop(e,tp,eg,ep,ev,re,r,rp) function c68199168.tgop(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