Commit 507a77ae authored by DailyShana's avatar DailyShana

fix

parent fad22485
......@@ -95,7 +95,7 @@ function c51316684.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c51316684.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetBattledGroup():GetCount()>0
return Duel.GetTurnPlayer()==tp and e:GetHandler():GetBattledGroup():GetCount()>0
end
function c51316684.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -22,6 +22,16 @@ function c73176465.initial_effect(c)
e2:SetTarget(c73176465.destg)
e2:SetOperation(c73176465.desop)
c:RegisterEffect(e2)
--cannot pendulum summon
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c73176465.splimit)
c:RegisterEffect(e3)
end
function c73176465.splimit(e,se,sp,st)
return se:GetCode()~=EFFECT_SPSUMMON_PROC_G
end
function c73176465.condtion(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 and re:IsActiveType(TYPE_MONSTER)
......
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