Commit b71c4914 authored by wind2009's avatar wind2009

Fix 刻まれし魔の楽園

parent 7edb224f
--镌刻魔的乐园 --刻まれし魔の楽園
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -37,11 +37,10 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,11 +37,10 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.tgop(e,tp,eg,ep,ev,re,r,rp) function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or not tc:IsType(TYPE_MONSTER) then return end local exc=nil
if tc then if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then exc=tc end
local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,tc) local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,exc)
Duel.SendtoGrave(dg,REASON_EFFECT) Duel.SendtoGrave(dg,REASON_EFFECT)
end
end end
function s.tgcon2(e,tp,eg,ep,ev,re,r,rp) function s.tgcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp) return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp)
......
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