Commit 198deb14 authored by nanahira's avatar nanahira

fix

parent cb8ba08f
Pipeline #35724 passed with stage
in 17 seconds
......@@ -16,7 +16,7 @@ cm.initial_effect = function (c)
if cm.e2 then
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE + CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_PHASE + PHASE_END)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.e2.con)
......@@ -56,7 +56,7 @@ cm.e2 = {
tg = function (e, tp, eg, ep, ev, re, r, rp, chk)
local c = e:GetHandler()
if chk == 0 then
return c:IsAbleToRemove() and Duel.IsPlayerCanSpecialSummon(tp)
return true -- c:IsAbleToRemove() and Duel.IsPlayerCanSpecialSummon(tp)
end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, nil, 1, tp, LOCATION_REMOVED)
Duel.SetOperationInfo(0, CATEGORY_REMOVE, c, 1, 0, 0)
......@@ -109,6 +109,7 @@ cm.e2 = {
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_FACEUP)
local sg = Duel.SelectMatchingCard(tp, cm.e2.gain.atkfilter, tp, LOCATION_MZONE, LOCATION_MZONE, 1, 1, e:GetHandler(), g:GetFirst():GetAttack())
local tc = sg:GetFirst()
Duel.HintSelection(sg)
if not tc:IsImmuneToEffect(e) then
local og = tc:GetOverlayGroup()
if og:GetCount() > 0 then
......
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