Commit 24dd1609 authored by salix5's avatar salix5
parent 9f34d70e
...@@ -40,14 +40,6 @@ function c13893596.initial_effect(c) ...@@ -40,14 +40,6 @@ function c13893596.initial_effect(c)
e5:SetCondition(c13893596.recon) e5:SetCondition(c13893596.recon)
e5:SetValue(LOCATION_REMOVED) e5:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--win
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e6:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_DELAY)
e6:SetCode(EVENT_TO_GRAVE)
e6:SetRange(LOCATION_MZONE)
e6:SetOperation(c13893596.winop)
c:RegisterEffect(e6)
end end
function c13893596.cfilter(c) function c13893596.cfilter(c)
return not c:IsAbleToDeckOrExtraAsCost() return not c:IsAbleToDeckOrExtraAsCost()
...@@ -78,9 +70,13 @@ function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,9 +70,13 @@ function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c13893596.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c13893596.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE) if tc and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e) then
and c:IsRelateToEffect(e) and c:IsFaceup() then tc:CreateRelation(c,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
tc:CreateRelation(c,RESET_EVENT+RESETS_STANDARD) local g=Duel.GetMatchingGroup(c13893596.filter,tp,LOCATION_GRAVE,0,nil,c)
if c:GetOriginalCode()==13893596 and c:IsFaceup() and g:IsContains(tc) and g:GetClassCount(Card.GetCode)==5 then
local WIN_REASON_EXODIUS = 0x14
Duel.Win(tp,WIN_REASON_EXODIUS)
end
end end
end end
function c13893596.atkval(e,c) function c13893596.atkval(e,c)
...@@ -89,11 +85,3 @@ end ...@@ -89,11 +85,3 @@ end
function c13893596.recon(e) function c13893596.recon(e)
return e:GetHandler():IsFaceup() return e:GetHandler():IsFaceup()
end end
function c13893596.winop(e,tp,eg,ep,ev,re,r,rp)
local WIN_REASON_EXODIUS = 0x14
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c13893596.filter,tp,LOCATION_GRAVE,0,nil,c)
if g:GetClassCount(Card.GetCode)==5 then
Duel.Win(tp,WIN_REASON_EXODIUS)
end
end
...@@ -32,7 +32,7 @@ function c66765023.valcon(e,re,r,rp) ...@@ -32,7 +32,7 @@ function c66765023.valcon(e,re,r,rp)
return res return res
end end
function c66765023.effcon(e,tp,eg,ep,ev,re,r,rp) function c66765023.effcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(66765023)~=0 return e:GetHandler():GetFlagEffect(66765023)~=0 and Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
end end
function c66765023.effop(e,tp,eg,ep,ev,re,r,rp) function c66765023.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -40,11 +40,11 @@ function c66765023.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,11 +40,11 @@ function c66765023.effop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(66765023,0)) e1:SetDescription(aux.Stringid(66765023,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetCondition(c66765023.wincon) e1:SetCondition(c66765023.wincon)
e1:SetOperation(c66765023.winop) e1:SetOperation(c66765023.winop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c66765023.wincon(e,tp,eg,ep,ev,re,r,rp) function c66765023.wincon(e,tp,eg,ep,ev,re,r,rp)
......
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