Commit 9aa3da41 authored by GuGu's avatar GuGu

Update c31021.lua

parent e8a5e9aa
Pipeline #40027 passed with stage
in 7 seconds
......@@ -42,7 +42,7 @@ function c31021.initial_effect(c)
--hen you xiu
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e7:SetCode(EVENT_TO_HAND)
e7:SetCode(EVENT_ADJUST)
e7:SetRange(LOCATION_MZONE)
e7:SetCondition(c31021.condition1)
e7:SetOperation(c31021.operation)
......@@ -92,10 +92,12 @@ function c31021.cfilter(c,tp)
return c:IsControler(tp)
end
function c31021.condition1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c31021.cfilter,1,nil,tp) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>3
return --eg:IsExists(c31021.cfilter,1,nil,tp) and
Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>3
end
function c31021.condition2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c31021.cfilter,1,nil,tp) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>3 and
return --eg:IsExists(c31021.cfilter,1,nil,tp) and
Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>3 and
bit.band(e:GetHandler():GetPreviousLocation(),LOCATION_ONFIELD)~=0
end
function c31021.operation(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