Commit dc49897f authored by TanakaKotoha's avatar TanakaKotoha

rover

parent 3af7aa77
......@@ -37,12 +37,12 @@ function c65010130.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EVENT_SUMMON_SUCCESS)
e4:SetCountLimit(1)
e4:SetCountLimit(1+EFFECT_COUNT_CODE_SINGLE)
e4:SetCondition(c65010130.thcon)
e4:SetTarget(c65010130.thtg)
e4:SetOperation(c65010130.thop)
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
local e5=e4:Clone()
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e5)
--damage
......
......@@ -18,7 +18,7 @@ function c75646618.initial_effect(c)
c:RegisterEffect(e1)
--Recover
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(28806532,0))
e2:SetDescription(aux.Stringid(75646618,0))
e2:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE)
......@@ -51,11 +51,10 @@ function c75646618.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c75646618.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,c)
if g:GetCount()>0 then
Duel.Equip(tp,g:GetFirst(),c)
if Duel.GetFlagEffect(tp,75646600)~=0 then
if Duel.GetFlagEffect(tp,75646600)>0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetCondition(c75646618.imcon)
e1:SetValue(c75646618.imfilter)
e1:SetOwnerPlayer(tp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
......@@ -63,6 +62,9 @@ function c75646618.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c75646618.imfilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function c75646618.cfilter(c)
return aux.IsCodeListed(c,75646600) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
......
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