Commit d0ad89a2 authored by salix5's avatar salix5

fix

c7935043 海竜神の加護
change the local var name

c85080444 アーティファクト-アイギス
http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=13104&keyword=&tag=-1
The Artifact monsters that are sp_summoned after the effect appies will also be protected.

c61258740 水神の護符
The self_destruction is not a card effect, as other similar effects.
parent 8799c0c1
...@@ -39,6 +39,6 @@ function c61258740.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,6 +39,6 @@ function c61258740.tgop(e,tp,eg,ep,ev,re,r,rp)
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
if ct==3 then if ct==3 then
Duel.SendtoGrave(c,REASON_EFFECT) Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -16,14 +16,14 @@ function c7935043.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,14 +16,14 @@ function c7935043.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(1) e1:SetValue(1)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e1=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetTarget(c7935043.tg) e2:SetTarget(c7935043.tg)
e1:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e1:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(1) e2:SetValue(1)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e2,tp)
end end
function c7935043.tg(e,c) function c7935043.tg(e,c)
return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WATER) return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WATER)
......
...@@ -42,25 +42,21 @@ end ...@@ -42,25 +42,21 @@ end
function c85080444.indcon(e,tp,eg,ep,ev,re,r,rp) function c85080444.indcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
end end
function c85080444.filter(c) function c85080444.tg(e,c)
return c:IsFaceup() and c:IsSetCard(0x97) return c:IsFaceup() and c:IsSetCard(0x97)
end end
function c85080444.indop(e,tp,eg,ep,ev,re,r,rp) function c85080444.indop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c85080444.filter,tp,LOCATION_MZONE,0,nil) local e1=Effect.CreateEffect(e:GetHandler())
local tc=g:GetFirst() e1:SetType(EFFECT_TYPE_FIELD)
while tc do e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
local e1=Effect.CreateEffect(e:GetHandler()) e1:SetTarget(c85080444.tg)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(c85080444.tgvalue)
e1:SetValue(c85080444.tgvalue) Duel.RegisterEffect(e1,tp)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) local e2=e1:Clone()
tc:RegisterEffect(e1) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
local e2=e1:Clone() Duel.RegisterEffect(e2,tp)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
tc:RegisterEffect(e2)
tc=g:GetNext()
end
end end
function c85080444.tgvalue(e,re,rp) function c85080444.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer() return rp~=e:GetHandlerPlayer()
......
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