Commit 24a901fa authored by 独孤朲's avatar 独孤朲

Merge pull request #82 from mercury233/patch-2

fix
parents b6cfef0f 81effa8c
...@@ -3,7 +3,7 @@ function c59255742.initial_effect(c) ...@@ -3,7 +3,7 @@ function c59255742.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c59255742.ffilter,2,false) aux.AddFusionProcFunRep(c,c59255742.ffilter,2,false)
-- --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetCode(EVENT_BATTLE_DESTROYING)
...@@ -12,7 +12,7 @@ function c59255742.initial_effect(c) ...@@ -12,7 +12,7 @@ function c59255742.initial_effect(c)
e1:SetTarget(c59255742.sptg) e1:SetTarget(c59255742.sptg)
e1:SetOperation(c59255742.spop) e1:SetOperation(c59255742.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
...@@ -22,7 +22,7 @@ function c59255742.initial_effect(c) ...@@ -22,7 +22,7 @@ function c59255742.initial_effect(c)
e2:SetTarget(c59255742.sptg2) e2:SetTarget(c59255742.sptg2)
e2:SetOperation(c59255742.spop) e2:SetOperation(c59255742.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --take control
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_CONTROL) e3:SetCategory(CATEGORY_CONTROL)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
...@@ -32,7 +32,7 @@ function c59255742.initial_effect(c) ...@@ -32,7 +32,7 @@ function c59255742.initial_effect(c)
e3:SetTarget(c59255742.target) e3:SetTarget(c59255742.target)
e3:SetOperation(c59255742.operation) e3:SetOperation(c59255742.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
-- --return control
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_LEAVE_FIELD) e4:SetCode(EVENT_LEAVE_FIELD)
...@@ -84,11 +84,11 @@ function c59255742.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,11 +84,11 @@ function c59255742.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c59255742.filter(c,tp) function c59255742.filter(c,tp)
return c:GetSummonPlayer()~=tp and c:IsControlerCanBeChanged() return c:GetSummonPlayer()==1-tp and c:IsControlerCanBeChanged()
end end
function c59255742.target(e,tp,eg,ep,ev,re,r,rp,chk) function c59255742.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=eg:Filter(c59255742.filter,nil,tp) local g=eg:Filter(c59255742.filter,nil,tp)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>=g:GetCount()-1 end if chk==0 then return g:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=g:GetCount()-1 end
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0)
end 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