Commit 5d3f14a6 authored by FluerLee's avatar FluerLee Committed by GitHub

Fix 5 kinds of 聖剣 (#2272)

parent 3f3aa080
--聖剣ガラティーン
--Fixed by Lee
function c14745409.initial_effect(c)
c:SetUniqueOnField(1,0,14745409)
--Activate
......@@ -42,7 +43,7 @@ function c14745409.initial_effect(c)
e5:SetCountLimit(1,14745409)
e5:SetCondition(c14745409.eqcon)
e5:SetTarget(c14745409.eqtg)
e5:SetOperation(c14745409.operation)
e5:SetOperation(c14745409.operation2)
c:RegisterEffect(e5)
end
function c14745409.eqlimit(e,c)
......@@ -61,7 +62,7 @@ end
function c14745409.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
......@@ -103,3 +104,10 @@ function c14745409.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c14745409.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsSetCard(0x107a) and tc:IsRace(RACE_WARRIOR) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
\ No newline at end of file
--聖剣カリバーン
--Fixed by Lee
function c23562407.initial_effect(c)
c:SetUniqueOnField(1,0,23562407)
--Activate
......@@ -43,7 +44,7 @@ function c23562407.initial_effect(c)
e5:SetCountLimit(1,23562407)
e5:SetCondition(c23562407.eqcon)
e5:SetTarget(c23562407.eqtg)
e5:SetOperation(c23562407.operation)
e5:SetOperation(c23562407.operation2)
c:RegisterEffect(e5)
end
function c23562407.eqlimit(e,c)
......@@ -62,7 +63,7 @@ end
function c23562407.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
......@@ -92,3 +93,10 @@ function c23562407.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c23562407.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsSetCard(0x107a) and tc:IsRace(RACE_WARRIOR) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
\ No newline at end of file
--聖剣クラレント
--Fixed by Lee
function c41359411.initial_effect(c)
c:SetUniqueOnField(1,0,41359411)
--Activate
......@@ -37,7 +38,7 @@ function c41359411.initial_effect(c)
e4:SetCountLimit(1,41359411)
e4:SetCondition(c41359411.eqcon)
e4:SetTarget(c41359411.eqtg)
e4:SetOperation(c41359411.operation)
e4:SetOperation(c41359411.operation2)
c:RegisterEffect(e4)
end
function c41359411.eqlimit(e,c)
......@@ -56,7 +57,7 @@ end
function c41359411.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
......@@ -91,3 +92,10 @@ function c41359411.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c41359411.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsSetCard(0x107a) and tc:IsRace(RACE_WARRIOR) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
\ No newline at end of file
--天命の聖剣
--Fixed by Lee
function c7452945.initial_effect(c)
c:SetUniqueOnField(1,0,7452945)
--Activate
......@@ -34,7 +35,7 @@ function c7452945.initial_effect(c)
e4:SetCountLimit(1,7452945)
e4:SetCondition(c7452945.eqcon)
e4:SetTarget(c7452945.eqtg)
e4:SetOperation(c7452945.operation)
e4:SetOperation(c7452945.operation2)
c:RegisterEffect(e4)
end
function c7452945.eqlimit(e,c)
......@@ -53,7 +54,7 @@ end
function c7452945.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
......@@ -76,3 +77,10 @@ function c7452945.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c7452945.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsSetCard(0x107a) and tc:IsRace(RACE_WARRIOR) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
\ No newline at end of file
--聖剣アロンダイト
--Fixed by Lee
function c83438826.initial_effect(c)
c:SetUniqueOnField(1,0,83438826)
--Activate
......@@ -38,7 +39,7 @@ function c83438826.initial_effect(c)
e5:SetCountLimit(1,83438826)
e5:SetCondition(c83438826.eqcon)
e5:SetTarget(c83438826.eqtg)
e5:SetOperation(c83438826.operation)
e5:SetOperation(c83438826.operation2)
c:RegisterEffect(e5)
end
function c83438826.eqlimit(e,c)
......@@ -57,7 +58,7 @@ end
function c83438826.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
end
end
......@@ -104,3 +105,19 @@ function c83438826.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c83438826.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then
Duel.Equip(tp,c,tc)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(c83438826.eqlimit2)
c:RegisterEffect(e1)
end
end
function c83438826.eqlimit2(e,c)
return e:GetOwner()==c
end
\ No newline at end of file
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