Commit 41aec8f3 authored by mercury233's avatar mercury233

fix

parent 94a1bd74
...@@ -67,7 +67,7 @@ function c100426034.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c100426034.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c100426034.discon(e,tp,eg,ep,ev,re,r,rp) function c100426034.discon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return bit.band(loc,LOCATION_SZONE)~=0 return Duel.GetTurnPlayer()==1-tp and bit.band(loc,LOCATION_SZONE)~=0
and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainDisablable(ev) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainDisablable(ev) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c100426034.spfilter(c,e,tp,ec) function c100426034.spfilter(c,e,tp,ec)
......
...@@ -67,7 +67,7 @@ function c101107013.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -67,7 +67,7 @@ function c101107013.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c101107013.atkop(e,tp,eg,ep,ev,re,r,rp) function c101107013.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local ct=Duel.GetMatchingGroupCount(c101107013.atkfilter2,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c101107013.atkfilter2,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
local atk=g:GetClassCount(Card.GetCode)*500 local atk=g:GetClassCount(Card.GetCode)*500
if atk>0 and tc:IsFaceup() and tc:IsRelateToEffect(e) then if atk>0 and tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -101,7 +101,7 @@ end ...@@ -101,7 +101,7 @@ end
function c101107013.drcon(e,tp,eg,ep,ev,re,r,rp) function c101107013.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c101107013.costfilter(c) function c101107013.drcostfilter(c)
return c:IsSetCard(0xae,0xaf) and c:IsDiscardable() return c:IsSetCard(0xae,0xaf) and c:IsDiscardable()
end end
function c101107013.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function c101107013.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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