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