Commit 28fa4ffb authored by VanillaSalt's avatar VanillaSalt

fix

parent c785a84d
...@@ -62,5 +62,5 @@ function c20073910.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,5 +62,5 @@ function c20073910.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c20073910.thop(e,tp,eg,ep,ev,re,r,rp) function c20073910.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler())
Duel.Remove(g,POP_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end end
...@@ -32,7 +32,7 @@ function c31472884.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c31472884.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c31472884.cfilter(c) function c31472884.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsDiscardable() and c:GetAttack()>=0 and c:GetDefence()>=0 return c:IsType(TYPE_MONSTER) and c:IsDiscardable() and c:GetAttack()>=0 and c:GetDefence()>=0
and Duel.IsExistingTarget(c31472884.tgfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c) and Duel.IsExistingTarget(c31472884.tgfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil,c)
end end
function c31472884.tgfilter(c,dc) function c31472884.tgfilter(c,dc)
return c:IsFaceup() and (c:GetAttack()~=dc:GetAttack() or c:GetDefence()~=dc:GetDefence()) return c:IsFaceup() and (c:GetAttack()~=dc:GetAttack() or c:GetDefence()~=dc:GetDefence())
......
...@@ -77,11 +77,12 @@ function c34079868.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,11 +77,12 @@ function c34079868.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c34079868.condition(e,tp,eg,ep,ev,re,r,rp) function c34079868.condition(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) local c=e:GetHandler()
return rp~=tp and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD)
end end
function c34079868.spfilter1(c,e,tp) function c34079868.spfilter1(c,e,tp)
return c:IsSetCard(0xc7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(c34079868.spfilter2,tp,LOCATION_DECK,0,1,c,e,tp,0xda) and Duel.IsExistingMatchingCard(c34079868.spfilter2,tp,LOCATION_DECK,0,1,c,e,tp)
end end
function c34079868.spfilter2(c,e,tp) function c34079868.spfilter2(c,e,tp)
return c:IsSetCard(0xda) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xda) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -50,4 +50,4 @@ function c62180201.atkval(e,c) ...@@ -50,4 +50,4 @@ function c62180201.atkval(e,c)
end end
function c62180201.defval(e,c) function c62180201.defval(e,c)
return c:GetDefence()/2 return c:GetDefence()/2
end end
\ No newline at end of file
...@@ -20,7 +20,7 @@ function c69599136.filter(c,tp) ...@@ -20,7 +20,7 @@ function c69599136.filter(c,tp)
end end
function c69599136.target(e,tp,eg,ep,ev,re,r,rp,chk) function c69599136.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c69599136.filter,1,nil,tp) end if chk==0 then return eg:IsExists(c69599136.filter,1,nil,tp) end
local g=eg:Filter(c69599136.filter,1,nil,tp) local g=eg:Filter(c69599136.filter,nil,tp)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
end end
function c69599136.activate(e,tp,eg,ep,ev,re,r,rp) function c69599136.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -40,7 +40,7 @@ function c74839123.filter(c) ...@@ -40,7 +40,7 @@ function c74839123.filter(c)
return c:IsSetCard(0xad) and c:IsType(TYPE_FUSION) and c:IsAbleToExtra() return c:IsSetCard(0xad) and c:IsType(TYPE_FUSION) and c:IsAbleToExtra()
end end
function c74839123.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c74839123.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c74839123.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c74839123.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c74839123.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c74839123.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c74839123.filter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,c74839123.filter,tp,LOCATION_GRAVE,0,1,1,nil)
......
...@@ -73,6 +73,7 @@ function c77625948.repval(e,re,r,rp) ...@@ -73,6 +73,7 @@ function c77625948.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE)~=0
end end
function c77625948.atkcon(e) function c77625948.atkcon(e)
local tp=e:GetHandlerPlayer()
return Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)~=0 return Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)~=0
and e:GetHandler():GetEffectCount(EFFECT_DIRECT_ATTACK)==1 and e:GetHandler():GetEffectCount(EFFECT_DIRECT_ATTACK)==1
end end
......
...@@ -51,7 +51,7 @@ function c7922915.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c7922915.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c7922915.cfilter(c,e,tp) function c7922915.cfilter(c)
return c:IsCode(46986414) and c:IsFaceup() return c:IsCode(46986414) and c:IsFaceup()
end end
function c7922915.negcon(e,tp,eg,ep,ev,re,r,rp) function c7922915.negcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -54,7 +54,7 @@ function c8706701.cfilter(c,tp) ...@@ -54,7 +54,7 @@ function c8706701.cfilter(c,tp)
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:GetSummonPlayer()==tp return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:GetSummonPlayer()==tp
end end
function c8706701.thcon(e,tp,eg,ep,ev,re,r,rp) function c8706701.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c8706701.cfilter,1,nil) and aux.exccon(e) return eg:IsExists(c8706701.cfilter,1,nil,tp) and aux.exccon(e)
end end
function c8706701.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c8706701.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end if chk==0 then return e:GetHandler():IsAbleToHand() 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