Commit 92557e64 authored by DailyShana's avatar DailyShana

fix

parent 1338b9e3
......@@ -81,7 +81,9 @@ function c17016362.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end
function c17016362.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():IsReason(REASON_DESTROY)
local c=e:GetHandler()
return c:IsReason(REASON_BATTLE)
or rp~=tp and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp
end
function c17016362.spfilter(c,e,tp)
return c:IsSetCard(0xc6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -12,7 +12,9 @@ function c32146097.initial_effect(c)
c:RegisterEffect(e1)
end
function c32146097.drcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():IsReason(REASON_DESTROY)
local c=e:GetHandler()
return (c:IsReason(REASON_BATTLE)
or rp~=tp and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp)
and Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)==0
end
function c32146097.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -32,7 +32,9 @@ function c57477163.actcon(e)
return Duel.GetAttacker()==e:GetHandler() or Duel.GetAttackTarget()==e:GetHandler()
end
function c57477163.condition(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():IsReason(REASON_DESTROY)
local c=e:GetHandler()
return c:IsReason(REASON_BATTLE)
or rp~=tp and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp
end
function c57477163.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -50,7 +50,9 @@ function c74583607.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c74583607.thcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():GetPreviousControler()==tp
local c=e:GetHandler()
return c:IsReason(REASON_BATTLE)
or (rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp)
end
function c74583607.thfilter(c)
return c:IsSetCard(0xae) and c:IsAbleToHand()
......
......@@ -15,7 +15,9 @@ function c76066541.initial_effect(c)
end
function c76066541.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return rp~=tp and c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD)
return (c:IsReason(REASON_BATTLE)
or rp~=tp and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp)
and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c76066541.filter(c,e,tp)
return c:IsType(TYPE_PENDULUM) and c:IsAttribute(ATTRIBUTE_EARTH)
......
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