Commit fcb632fc authored by DailyShana's avatar DailyShana

fix target monster as equip card

parent 7834a3cc
...@@ -48,6 +48,6 @@ function c11743119.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,6 +48,6 @@ function c11743119.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c11743119.eqlimit) e1:SetValue(c11743119.eqlimit)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
...@@ -98,6 +98,6 @@ function c14466224.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,6 +98,6 @@ function c14466224.eqop(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(def) e3:SetValue(def)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
end end
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
...@@ -64,7 +64,7 @@ function c16255173.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c16255173.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc:RegisterFlagEffect(16255173,RESET_EVENT+RESETS_STANDARD,0,1) tc:RegisterFlagEffect(16255173,RESET_EVENT+RESETS_STANDARD,0,1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
function c16255173.eqlimit(e,c) function c16255173.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
......
...@@ -75,9 +75,7 @@ function c22842214.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,9 +75,7 @@ function c22842214.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.EquipComplete() Duel.EquipComplete()
end end
else else Duel.SendtoGrave(tg0,REASON_RULE) end
Duel.SendtoGrave(tg0,REASON_EFFECT)
end
end end
function c22842214.eqfilter(c,ec) function c22842214.eqfilter(c,ec)
return c:GetFlagEffect(22842214)~=0 and c:IsHasCardTarget(ec) return c:GetFlagEffect(22842214)~=0 and c:IsHasCardTarget(ec)
......
...@@ -87,7 +87,7 @@ function c23756165.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c23756165.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(c23756165.repval) e2:SetValue(c23756165.repval)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c23756165.repval(e,re,r,rp) function c23756165.repval(e,re,r,rp)
......
...@@ -109,7 +109,7 @@ function c31930787.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,7 +109,7 @@ function c31930787.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c31930787.dircon(e,tp,eg,ep,ev,re,r,rp) function c31930787.dircon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -67,7 +67,7 @@ function c3897065.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c3897065.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(3897065) e2:SetCode(3897065)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c3897065.atcon(e) function c3897065.atcon(e)
......
...@@ -59,7 +59,7 @@ function c39987164.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c39987164.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c39987164.eqlimit) e1:SetValue(c39987164.eqlimit)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c39987164.desfilter(c,att) function c39987164.desfilter(c,att)
......
...@@ -56,9 +56,7 @@ function c40267580.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,9 +56,7 @@ function c40267580.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(tp) e2:SetValue(tp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET) e2:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
c:RegisterEffect(e2) c:RegisterEffect(e2)
else else Duel.SendtoGrave(c,REASON_RULE) end
Duel.SendtoGrave(c,REASON_EFFECT)
end
end end
end end
function c40267580.reccon(e,tp,eg,ep,ev,re,r,rp) function c40267580.reccon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -91,7 +91,7 @@ function c41578483.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,7 @@ function c41578483.eqop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
c41578483.equip_monster(c,tp,tc) c41578483.equip_monster(c,tp,tc)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c41578483.atkval(e,c) function c41578483.atkval(e,c)
......
...@@ -64,7 +64,7 @@ function c4252828.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c4252828.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(800) e2:SetValue(800)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -114,7 +114,7 @@ function c4545683.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,7 +114,7 @@ function c4545683.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c4545683.spfilter(c,e,tp,ec) function c4545683.spfilter(c,e,tp,ec)
......
...@@ -83,6 +83,6 @@ function c48868994.opd(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,6 +83,6 @@ function c48868994.opd(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(48868994) e2:SetCode(48868994)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
...@@ -74,7 +74,7 @@ function c50140163.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c50140163.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(c50140163.repval) e2:SetValue(c50140163.repval)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c50140163.repval(e,re,r,rp) function c50140163.repval(e,re,r,rp)
......
...@@ -64,6 +64,6 @@ function c57784563.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,6 +64,6 @@ function c57784563.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(1) e2:SetValue(1)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
...@@ -56,7 +56,7 @@ function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c6075801.eqlimit) e1:SetValue(c6075801.eqlimit)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
function c6075801.eqlimit(e,c) function c6075801.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
......
...@@ -77,7 +77,7 @@ function c63465535.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c63465535.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c63465535.eqlimit) e1:SetValue(c63465535.eqlimit)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c63465535.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c63465535.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -93,7 +93,7 @@ function c63468625.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,7 +93,7 @@ function c63468625.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc:RegisterFlagEffect(63468625,RESET_EVENT+RESETS_STANDARD,0,1) tc:RegisterFlagEffect(63468625,RESET_EVENT+RESETS_STANDARD,0,1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c63468625.damcon(e,tp,eg,ep,ev,re,r,rp) function c63468625.damcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -93,7 +93,7 @@ function c63519819.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,7 +93,7 @@ function c63519819.eqop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
c63519819.equip_monster(c,tp,tc) c63519819.equip_monster(c,tp,tc)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c63519819.repval(e,re,r,rp) function c63519819.repval(e,re,r,rp)
......
...@@ -53,7 +53,7 @@ function c6387204.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c6387204.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(1000) e2:SetValue(1000)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc:RegisterFlagEffect(6387204,RESET_EVENT+RESETS_STANDARD,0,0) tc:RegisterFlagEffect(6387204,RESET_EVENT+RESETS_STANDARD,0,0)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
......
...@@ -87,7 +87,7 @@ function c64631466.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c64631466.eqop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
c64631466.equip_monster(c,tp,tc) c64631466.equip_monster(c,tp,tc)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c64631466.repval(e,re,r,rp) function c64631466.repval(e,re,r,rp)
......
...@@ -87,7 +87,7 @@ function c66094973.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c66094973.eqop(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(66094973) e3:SetCode(66094973)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c66094973.poscon(e,tp,eg,ep,ev,re,r,rp) function c66094973.poscon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -113,7 +113,7 @@ function c68140974.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +113,7 @@ function c68140974.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c68140974.negcon(e,tp,eg,ep,ev,re,r,rp) function c68140974.negcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -72,7 +72,7 @@ function c77693536.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c77693536.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(c77693536.eqlimit) e2:SetValue(c77693536.eqlimit)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
function c77693536.eqlimit(e,c) function c77693536.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
......
...@@ -59,9 +59,7 @@ function c80769747.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,9 +59,7 @@ function c80769747.eqop(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(-800) e3:SetValue(-800)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
else else Duel.SendtoGrave(c,REASON_RULE) end
Duel.SendtoGrave(c,REASON_EFFECT)
end
end end
end end
function c80769747.ddescon(e,tp,eg,ep,ev,re,r,rp) function c80769747.ddescon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -82,7 +82,7 @@ function c82962242.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function c82962242.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc:RegisterFlagEffect(82962242,RESET_EVENT+RESETS_STANDARD,0,1) tc:RegisterFlagEffect(82962242,RESET_EVENT+RESETS_STANDARD,0,1)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
function c82962242.eqlimit(e,c) function c82962242.eqlimit(e,c)
return e:GetOwner()==c and not c:IsDisabled() return e:GetOwner()==c and not c:IsDisabled()
......
...@@ -112,6 +112,6 @@ function c83965310.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -112,6 +112,6 @@ function c83965310.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
...@@ -69,7 +69,7 @@ function c87257460.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c87257460.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(c87257460.repval) e2:SetValue(c87257460.repval)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c87257460.repval(e,re,r,rp) function c87257460.repval(e,re,r,rp)
......
...@@ -71,7 +71,7 @@ function c94259633.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c94259633.eqop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
c94259633.equip_monster(c,tp,tc) c94259633.equip_monster(c,tp,tc)
else Duel.SendtoGrave(tc,REASON_EFFECT) end else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function c94259633.adcon(e) function c94259633.adcon(e)
......
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