Commit 8981d2a2 authored by nekrozar's avatar nekrozar Committed by mercury233

add aux.indsval, aux.indoval and aux.tgsval (#956)

parent 7cc2c136
...@@ -60,7 +60,7 @@ function c111280.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c111280.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetTargetRange(LOCATION_ONFIELD,0) e3:SetTargetRange(LOCATION_ONFIELD,0)
e3:SetTarget(c111280.indtg) e3:SetTarget(c111280.indtg)
e3:SetValue(c111280.indval) e3:SetValue(aux.indoval)
e3:SetReset(RESET_PHASE+PHASE_END) e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end end
...@@ -90,9 +90,6 @@ end ...@@ -90,9 +90,6 @@ end
function c111280.indtg(e,c) function c111280.indtg(e,c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c111280.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c111280.efilter(e,re) function c111280.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end end
...@@ -18,7 +18,7 @@ function c13301895.initial_effect(c) ...@@ -18,7 +18,7 @@ function c13301895.initial_effect(c)
--Indes --Indes
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetValue(c13301895.tgvalue) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Draw --Draw
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -35,9 +35,6 @@ end ...@@ -35,9 +35,6 @@ end
function c13301895.immtg(e,c) function c13301895.immtg(e,c)
return c:IsCode(6007213,32491822,69890967,43378048) return c:IsCode(6007213,32491822,69890967,43378048)
end end
function c13301895.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c13301895.drcfilter(c) function c13301895.drcfilter(c)
return c:IsFaceup() and c:IsCode(6007213,32491822,69890967,43378048) return c:IsFaceup() and c:IsCode(6007213,32491822,69890967,43378048)
end end
......
...@@ -50,7 +50,7 @@ function c13331639.initial_effect(c) ...@@ -50,7 +50,7 @@ function c13331639.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e6=e5:Clone() local e6=e5:Clone()
e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e6:SetValue(c13331639.tgvalue) e6:SetValue(aux.indoval)
c:RegisterEffect(e6) c:RegisterEffect(e6)
--special summon --special summon
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
...@@ -120,9 +120,6 @@ function c13331639.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -120,9 +120,6 @@ function c13331639.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end end
function c13331639.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c13331639.spfilter(c,e,tp) function c13331639.spfilter(c,e,tp)
return c:IsSetCard(0x20f8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x20f8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -15,7 +15,7 @@ function c18386170.initial_effect(c) ...@@ -15,7 +15,7 @@ function c18386170.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetValue(c18386170.tgval) e2:SetValue(aux.tgoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--draw --draw
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -43,9 +43,6 @@ end ...@@ -43,9 +43,6 @@ end
function c18386170.ffilter(c,fc,sub,mg,sg) function c18386170.ffilter(c,fc,sub,mg,sg)
return c:IsFusionSetCard(0xb1) and (not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode())) return c:IsFusionSetCard(0xb1) and (not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()))
end end
function c18386170.tgval(e,re,rp)
return rp~=e:GetHandlerPlayer() and not re:GetHandler():IsImmuneToEffect(e)
end
function c18386170.cfilter(c) function c18386170.cfilter(c)
return c:IsSetCard(0xb1) and c:IsAbleToGraveAsCost() return c:IsSetCard(0xb1) and c:IsAbleToGraveAsCost()
end end
...@@ -76,4 +73,4 @@ function c18386170.hdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,4 +73,4 @@ function c18386170.hdop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local sg=g:RandomSelect(tp,1) local sg=g:RandomSelect(tp,1)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -84,13 +84,10 @@ function c19089195.remop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,13 +84,10 @@ function c19089195.remop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetTargetRange(LOCATION_ONFIELD,0) e1:SetTargetRange(LOCATION_ONFIELD,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_SPELL+TYPE_TRAP)) e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_SPELL+TYPE_TRAP))
e1:SetValue(c19089195.indval) e1:SetValue(aux.indoval)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c19089195.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c19089195.descon(e,tp,eg,ep,ev,re,r,rp) function c19089195.descon(e,tp,eg,ep,ev,re,r,rp)
if not c19089195.econ(e,tp,eg,ep,ev,re,r,rp) then return false end if not c19089195.econ(e,tp,eg,ep,ev,re,r,rp) then return false end
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
......
...@@ -14,7 +14,7 @@ function c20920083.initial_effect(c) ...@@ -14,7 +14,7 @@ function c20920083.initial_effect(c)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCondition(c20920083.con) e2:SetCondition(c20920083.con)
e2:SetTarget(c20920083.tg) e2:SetTarget(c20920083.tg)
e2:SetValue(c20920083.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--cannot be target --cannot be target
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -46,9 +46,6 @@ end ...@@ -46,9 +46,6 @@ end
function c20920083.tg(e,c) function c20920083.tg(e,c)
return c:IsDefensePos() return c:IsDefensePos()
end end
function c20920083.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c20920083.repfilter(c,e) function c20920083.repfilter(c,e)
return c:GetSequence()<5 and c:IsDestructable(e) return c:GetSequence()<5 and c:IsDestructable(e)
and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED)
......
...@@ -20,7 +20,7 @@ function c24550676.initial_effect(c) ...@@ -20,7 +20,7 @@ function c24550676.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(c24550676.tgvalue) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Double attack --Double attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -40,9 +40,6 @@ function c24550676.initial_effect(c) ...@@ -40,9 +40,6 @@ function c24550676.initial_effect(c)
e4:SetOperation(c24550676.operation) e4:SetOperation(c24550676.operation)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c24550676.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c24550676.condition(e,tp,eg,ep,ev,re,r,rp) function c24550676.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget() return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()
end end
......
...@@ -51,13 +51,10 @@ function c259314.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,13 +51,10 @@ function c259314.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetType(EFFECT_TYPE_EQUIP) e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT+0x1fe0000)
e3:SetValue(c259314.efilter) e3:SetValue(aux.indoval)
c:RegisterEffect(e3,true) c:RegisterEffect(e3,true)
end end
end end
function c259314.eqlimit(e,c) function c259314.eqlimit(e,c)
return c:IsSetCard(0x56) return c:IsSetCard(0x56)
end end
function c259314.efilter(e,re,rp)
return e:GetHandlerPlayer()~=rp
end
...@@ -20,7 +20,7 @@ function c27784944.initial_effect(c) ...@@ -20,7 +20,7 @@ function c27784944.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetValue(c27784944.tgval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--special summon --special summon
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -59,9 +59,6 @@ end ...@@ -59,9 +59,6 @@ end
function c27784944.immtg(e,c) function c27784944.immtg(e,c)
return c:IsSetCard(0x109) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x109) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c27784944.tgval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c27784944.spreg(e,tp,eg,ep,ev,re,r,rp) function c27784944.spreg(e,tp,eg,ep,ev,re,r,rp)
if not re then return end if not re then return end
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -28,7 +28,7 @@ function c31178212.initial_effect(c) ...@@ -28,7 +28,7 @@ function c31178212.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetValue(c31178212.indval) e4:SetValue(aux.indoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c31178212.filter(c) function c31178212.filter(c)
...@@ -51,6 +51,3 @@ function c31178212.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +51,3 @@ function c31178212.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
end end
end end
function c31178212.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -29,7 +29,7 @@ function c31991800.initial_effect(c) ...@@ -29,7 +29,7 @@ function c31991800.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetValue(c31991800.indval) e5:SetValue(aux.indoval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c31991800.thfilter(c) function c31991800.thfilter(c)
...@@ -47,6 +47,3 @@ function c31991800.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,3 @@ function c31991800.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c31991800.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -19,7 +19,7 @@ function c41721210.initial_effect(c) ...@@ -19,7 +19,7 @@ function c41721210.initial_effect(c)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_ONFIELD,0) e3:SetTargetRange(LOCATION_ONFIELD,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_SPELL+TYPE_TRAP)) e3:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_SPELL+TYPE_TRAP))
e3:SetValue(c41721210.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--indes --indes
local e4=e3:Clone() local e4=e3:Clone()
...@@ -28,6 +28,3 @@ function c41721210.initial_effect(c) ...@@ -28,6 +28,3 @@ function c41721210.initial_effect(c)
e4:SetValue(aux.tgoval) e4:SetValue(aux.tgoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c41721210.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -12,7 +12,7 @@ function c44352516.initial_effect(c) ...@@ -12,7 +12,7 @@ function c44352516.initial_effect(c)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c44352516.indestg) e2:SetTarget(c44352516.indestg)
e2:SetValue(c44352516.indesval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
...@@ -43,9 +43,6 @@ end ...@@ -43,9 +43,6 @@ end
function c44352516.indestg(e,c) function c44352516.indestg(e,c)
return c:IsSetCard(0x4093) and c:IsType(TYPE_EFFECT) and c:GetEquipCount()>0 return c:IsSetCard(0x4093) and c:IsType(TYPE_EFFECT) and c:GetEquipCount()>0
end end
function c44352516.indesval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c44352516.filter(c) function c44352516.filter(c)
return c:IsSetCard(0x4093) and c:IsFaceup() and c:IsAbleToHand() return c:IsSetCard(0x4093) and c:IsFaceup() and c:IsAbleToHand()
end end
......
...@@ -19,7 +19,7 @@ function c45082499.initial_effect(c) ...@@ -19,7 +19,7 @@ function c45082499.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_ONFIELD,0) e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7e)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7e))
e2:SetValue(c45082499.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--destroy sub --destroy sub
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -70,9 +70,6 @@ end ...@@ -70,9 +70,6 @@ end
function c45082499.eqlimit(e,c) function c45082499.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
function c45082499.indval(e,re,rp)
return rp==1-e:GetHandlerPlayer()
end
function c45082499.repval(e,re,r,rp) function c45082499.repval(e,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
end end
...@@ -22,7 +22,7 @@ function c53413628.initial_effect(c) ...@@ -22,7 +22,7 @@ function c53413628.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetValue(c53413628.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c53413628.atkval(e,c) function c53413628.atkval(e,c)
...@@ -31,6 +31,3 @@ end ...@@ -31,6 +31,3 @@ end
function c53413628.indcon(e) function c53413628.indcon(e)
return e:GetHandler():GetLinkedGroupCount()>0 return e:GetHandler():GetLinkedGroupCount()>0
end end
function c53413628.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -31,7 +31,7 @@ function c54358015.initial_effect(c) ...@@ -31,7 +31,7 @@ function c54358015.initial_effect(c)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_ONFIELD,0) e3:SetTargetRange(LOCATION_ONFIELD,0)
e3:SetTarget(c54358015.tgtg) e3:SetTarget(c54358015.tgtg)
e3:SetValue(c54358015.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c54358015.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c54358015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -57,6 +57,3 @@ end ...@@ -57,6 +57,3 @@ end
function c54358015.tgtg(e,c) function c54358015.tgtg(e,c)
return c:IsSetCard(0x7b) and c~=e:GetHandler() return c:IsSetCard(0x7b) and c~=e:GetHandler()
end end
function c54358015.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -29,7 +29,7 @@ function c5506791.initial_effect(c) ...@@ -29,7 +29,7 @@ function c5506791.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetValue(c5506791.indval) e5:SetValue(aux.indoval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c5506791.thfilter(c) function c5506791.thfilter(c)
...@@ -60,6 +60,3 @@ function c5506791.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,3 @@ function c5506791.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c5506791.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -22,7 +22,7 @@ function c55410871.initial_effect(c) ...@@ -22,7 +22,7 @@ function c55410871.initial_effect(c)
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetValue(c55410871.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--pierce --pierce
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -36,9 +36,6 @@ function c55410871.initial_effect(c) ...@@ -36,9 +36,6 @@ function c55410871.initial_effect(c)
e5:SetOperation(c55410871.damop) e5:SetOperation(c55410871.damop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c55410871.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
function c55410871.damcon(e,tp,eg,ep,ev,re,r,rp) function c55410871.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c==Duel.GetAttacker() and Duel.GetAttackTarget() and Duel.GetAttackTarget():IsDefensePos() return ep~=tp and c==Duel.GetAttacker() and Duel.GetAttackTarget() and Duel.GetAttackTarget():IsDefensePos()
......
...@@ -17,14 +17,15 @@ function c59687381.initial_effect(c) ...@@ -17,14 +17,15 @@ function c59687381.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(c59687381.tgvalue) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e1:Clone() local e3=e1:Clone()
e3:SetTargetRange(0,LOCATION_SZONE) e3:SetTargetRange(0,LOCATION_SZONE)
e3:SetValue(c59687381.tgoval) e3:SetValue(aux.tgsval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e4:SetValue(aux.indsval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c59687381.tgfilter(c,tp) function c59687381.tgfilter(c,tp)
...@@ -33,9 +34,3 @@ end ...@@ -33,9 +34,3 @@ end
function c59687381.tgtg(e,c) function c59687381.tgtg(e,c)
return c:GetSequence()<5 and c:GetColumnGroup():FilterCount(c59687381.tgfilter,nil,c:GetControler())>0 return c:GetSequence()<5 and c:GetColumnGroup():FilterCount(c59687381.tgfilter,nil,c:GetControler())>0
end end
function c59687381.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c59687381.tgoval(e,re,rp)
return rp~=1-e:GetHandlerPlayer()
end
...@@ -13,7 +13,7 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -13,7 +13,7 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetTargetRange(LOCATION_PZONE,LOCATION_PZONE) e1:SetTargetRange(LOCATION_PZONE,LOCATION_PZONE)
e1:SetValue(c60434189.indval) e1:SetValue(aux.indoval)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -24,9 +24,6 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,9 +24,6 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c60434189.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
function c60434189.indfilter(c) function c60434189.indfilter(c)
return c:IsLocation(LOCATION_PZONE) return c:IsLocation(LOCATION_PZONE)
end end
......
...@@ -13,12 +13,9 @@ function c61258740.initial_effect(c) ...@@ -13,12 +13,9 @@ function c61258740.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER)) e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER))
e2:SetValue(c61258740.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c61258740.indval(e,re,tp)
return e:GetHandlerPlayer()==1-tp
end
function c61258740.target(e,tp,eg,ep,ev,re,r,rp,chk) function c61258740.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
e:GetHandler():SetTurnCounter(0) e:GetHandler():SetTurnCounter(0)
......
...@@ -27,7 +27,7 @@ function c645794.initial_effect(c) ...@@ -27,7 +27,7 @@ function c645794.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetValue(c645794.indval) e5:SetValue(aux.indoval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c645794.filter(c) function c645794.filter(c)
...@@ -52,6 +52,3 @@ function c645794.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,6 +52,3 @@ function c645794.setop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c645794.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -29,7 +29,7 @@ function c68395509.initial_effect(c) ...@@ -29,7 +29,7 @@ function c68395509.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetValue(c68395509.indval) e5:SetValue(aux.indoval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c68395509.thfilter(c) function c68395509.thfilter(c)
...@@ -47,6 +47,3 @@ function c68395509.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,3 @@ function c68395509.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c68395509.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -12,7 +12,7 @@ function c70147689.initial_effect(c) ...@@ -12,7 +12,7 @@ function c70147689.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c70147689.target) e2:SetTarget(c70147689.target)
e2:SetValue(c70147689.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--cannot be target --cannot be target
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -46,9 +46,6 @@ end ...@@ -46,9 +46,6 @@ end
function c70147689.target(e,c) function c70147689.target(e,c)
return c:IsSetCard(0x7) and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) return c:IsSetCard(0x7) and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end end
function c70147689.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c70147689.chainop(e,tp,eg,ep,ev,re,r,rp) function c70147689.chainop(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsSetCard(0x7) then if re:GetHandler():IsSetCard(0x7) then
Duel.SetChainLimit(c70147689.chainlm) Duel.SetChainLimit(c70147689.chainlm)
......
...@@ -12,7 +12,7 @@ function c71069715.initial_effect(c) ...@@ -12,7 +12,7 @@ function c71069715.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_ONFIELD,0) e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetTarget(c71069715.indtg) e2:SetTarget(c71069715.indtg)
e2:SetValue(c71069715.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--to deck --to deck
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -30,9 +30,6 @@ end ...@@ -30,9 +30,6 @@ end
function c71069715.indtg(e,c) function c71069715.indtg(e,c)
return c:IsSetCard(0xae) return c:IsSetCard(0xae)
end end
function c71069715.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c71069715.tdfilter(c) function c71069715.tdfilter(c)
return c:IsFaceup() and c:IsSetCard(0xaf) and c:IsAbleToDeck() return c:IsFaceup() and c:IsSetCard(0xaf) and c:IsAbleToDeck()
end end
......
...@@ -19,16 +19,16 @@ function c71650854.initial_effect(c) ...@@ -19,16 +19,16 @@ function c71650854.initial_effect(c)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetValue(c71650854.tgvalue) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e2:Clone()
e4:SetTargetRange(0,LOCATION_MZONE) e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetValue(c71650854.tgoval) e4:SetValue(aux.tgsval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=e3:Clone() local e5=e4:Clone()
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetTargetRange(0,LOCATION_MZONE) e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e5:SetValue(c71650854.tgovalue) e5:SetValue(aux.indsval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--cannot set/activate --cannot set/activate
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
...@@ -55,15 +55,6 @@ end ...@@ -55,15 +55,6 @@ end
function c71650854.indcon(e,tp,eg,ep,ev,re,r,rp) function c71650854.indcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 return Duel.GetCurrentPhase()==PHASE_MAIN1
end end
function c71650854.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c71650854.tgoval(e,re,rp)
return rp~=1-e:GetHandlerPlayer() and not re:GetHandler():IsImmuneToEffect(e)
end
function c71650854.tgovalue(e,re,rp)
return rp~=1-e:GetHandlerPlayer()
end
function c71650854.setlimit(e,c,tp) function c71650854.setlimit(e,c,tp)
return c:IsType(TYPE_FIELD) return c:IsType(TYPE_FIELD)
end end
......
...@@ -26,10 +26,7 @@ function c72318602.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,10 +26,7 @@ function c72318602.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetValue(c72318602.indval) e1:SetValue(aux.indoval)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c72318602.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -20,7 +20,7 @@ function c72664875.initial_effect(c) ...@@ -20,7 +20,7 @@ function c72664875.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(c72664875.tgvalue) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Halve LP --Halve LP
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -48,9 +48,6 @@ function c72664875.initial_effect(c) ...@@ -48,9 +48,6 @@ function c72664875.initial_effect(c)
e5:SetOperation(c72664875.damop) e5:SetOperation(c72664875.damop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c72664875.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c72664875.hvop(e,tp,eg,ep,ev,re,r,rp) function c72664875.hvop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2)) Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2))
end end
......
...@@ -51,7 +51,7 @@ function c85080444.indop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c85080444.indop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetTarget(c85080444.tg) e1:SetTarget(c85080444.tg)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetValue(c85080444.tgvalue) e1:SetValue(aux.indoval)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=e1:Clone() local e2=e1:Clone()
...@@ -60,6 +60,3 @@ function c85080444.indop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,3 @@ function c85080444.indop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(aux.tgoval) e2:SetValue(aux.tgoval)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c85080444.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -17,7 +17,7 @@ function c85908279.initial_effect(c) ...@@ -17,7 +17,7 @@ function c85908279.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetValue(c85908279.indval) e2:SetValue(aux.indoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--defense attack --defense attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -25,6 +25,3 @@ function c85908279.initial_effect(c) ...@@ -25,6 +25,3 @@ function c85908279.initial_effect(c)
e3:SetCode(EFFECT_DEFENSE_ATTACK) e3:SetCode(EFFECT_DEFENSE_ATTACK)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c85908279.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -26,7 +26,7 @@ function c88757791.initial_effect(c) ...@@ -26,7 +26,7 @@ function c88757791.initial_effect(c)
e4:SetTargetRange(LOCATION_MZONE,0) e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetCondition(c88757791.indcon) e4:SetCondition(c88757791.indcon)
e4:SetTarget(c88757791.indtg) e4:SetTarget(c88757791.indtg)
e4:SetValue(c88757791.indval) e4:SetValue(aux.indoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c88757791.cfilter(c,tp) function c88757791.cfilter(c,tp)
...@@ -74,6 +74,3 @@ end ...@@ -74,6 +74,3 @@ end
function c88757791.indtg(e,c) function c88757791.indtg(e,c)
return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM)
end end
function c88757791.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -24,7 +24,7 @@ function c90590303.initial_effect(c) ...@@ -24,7 +24,7 @@ function c90590303.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetValue(c90590303.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--pos --pos
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -59,9 +59,6 @@ end ...@@ -59,9 +59,6 @@ end
function c90590303.tgcon(e) function c90590303.tgcon(e)
return e:GetHandler():IsAttackPos() return e:GetHandler():IsAttackPos()
end end
function c90590303.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
function c90590303.poscon(e) function c90590303.poscon(e)
return e:GetHandler():IsDefensePos() return e:GetHandler():IsDefensePos()
end end
......
...@@ -29,7 +29,7 @@ function c94784213.initial_effect(c) ...@@ -29,7 +29,7 @@ function c94784213.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetValue(c94784213.indval) e5:SetValue(aux.indoval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c94784213.thfilter(c) function c94784213.thfilter(c)
...@@ -47,6 +47,3 @@ function c94784213.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,3 @@ function c94784213.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c94784213.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
...@@ -24,7 +24,7 @@ function c94977269.initial_effect(c) ...@@ -24,7 +24,7 @@ function c94977269.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetValue(c94977269.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--spsummon count limit --spsummon count limit
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -116,9 +116,6 @@ end ...@@ -116,9 +116,6 @@ end
function c94977269.splimit(e,se,sp,st) function c94977269.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end end
function c94977269.indval(e,re,tp)
return tp~=e:GetHandlerPlayer()
end
function c94977269.thfilter(c) function c94977269.thfilter(c)
return c:IsSetCard(0x9d) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x9d) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
......
...@@ -27,12 +27,13 @@ function c94982447.initial_effect(c) ...@@ -27,12 +27,13 @@ function c94982447.initial_effect(c)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetTarget(c94982447.tgtg) e3:SetTarget(c94982447.tgtg)
e3:SetValue(c94982447.indval) e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--indes --indes
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e4:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e4:SetValue(aux.tgoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c94982447.otfilter(c) function c94982447.otfilter(c)
...@@ -74,6 +75,3 @@ end ...@@ -74,6 +75,3 @@ end
function c94982447.tgtg(e,c) function c94982447.tgtg(e,c)
return c:IsSetCard(0xf9) and c~=e:GetHandler() return c:IsSetCard(0xf9) and c~=e:GetHandler()
end end
function c94982447.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
...@@ -35,13 +35,10 @@ function c95218695.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,13 +35,10 @@ function c95218695.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetTargetRange(LOCATION_ONFIELD,0) e1:SetTargetRange(LOCATION_ONFIELD,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xed)) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xed))
e1:SetValue(c95218695.indval) e1:SetValue(aux.indoval)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c95218695.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c95218695.cfilter(c,tp) function c95218695.cfilter(c,tp)
return c:IsPreviousPosition(POS_FACEUP) and c:IsFacedown() and c:IsControler(tp) return c:IsPreviousPosition(POS_FACEUP) and c:IsFacedown() and c:IsControler(tp)
end end
......
...@@ -16,7 +16,7 @@ function c97165977.initial_effect(c) ...@@ -16,7 +16,7 @@ function c97165977.initial_effect(c)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetValue(c97165977.tgvalue) e1:SetValue(aux.indoval)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Multiple attacks --Multiple attacks
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -40,9 +40,6 @@ end ...@@ -40,9 +40,6 @@ end
function c97165977.splimit(e,se,sp,st) function c97165977.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return not e:GetHandler():IsLocation(LOCATION_EXTRA) or bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end end
function c97165977.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c97165977.condition(e,tp,eg,ep,ev,re,r,rp) function c97165977.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP() return Duel.IsAbleToEnterBP()
end end
......
...@@ -26,7 +26,7 @@ function c975299.initial_effect(c) ...@@ -26,7 +26,7 @@ function c975299.initial_effect(c)
e4:SetRange(LOCATION_FZONE) e4:SetRange(LOCATION_FZONE)
e4:SetTargetRange(LOCATION_MZONE,0) e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x15)) e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x15))
e4:SetValue(c975299.indval) e4:SetValue(aux.indoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--cannot be target --cannot be target
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -76,9 +76,6 @@ function c975299.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,9 +76,6 @@ function c975299.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
end end
function c975299.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c975299.spfilter(c,e,tp) function c975299.spfilter(c,e,tp)
return c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -26,7 +26,7 @@ function c98076754.initial_effect(c) ...@@ -26,7 +26,7 @@ function c98076754.initial_effect(c)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,0) e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetCondition(c98076754.effcon) e3:SetCondition(c98076754.effcon)
e3:SetValue(c98076754.indval) e3:SetValue(aux.indoval)
e3:SetLabel(5) e3:SetLabel(5)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--cannot be target --cannot be target
...@@ -64,9 +64,6 @@ end ...@@ -64,9 +64,6 @@ end
function c98076754.atkval(e,c) function c98076754.atkval(e,c)
return Duel.GetMatchingGroupCount(Card.IsFaceup,0,LOCATION_EXTRA,LOCATION_EXTRA,nil)*100 return Duel.GetMatchingGroupCount(Card.IsFaceup,0,LOCATION_EXTRA,LOCATION_EXTRA,nil)*100
end end
function c98076754.indval(e,re,rp)
return rp~=e:GetHandlerPlayer()
end
function c98076754.tdcon(e,tp,eg,ep,ev,re,r,rp) function c98076754.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroup(c98076754.cfilter,tp,LOCATION_EXTRA,0,nil):GetClassCount(Card.GetCode)==10 return Duel.GetMatchingGroup(c98076754.cfilter,tp,LOCATION_EXTRA,0,nil):GetClassCount(Card.GetCode)==10
end end
......
...@@ -1720,9 +1720,21 @@ end ...@@ -1720,9 +1720,21 @@ end
function Auxiliary.imval1(e,c) function Auxiliary.imval1(e,c)
return not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e)
end end
--filter for EFFECT_INDESTRUCTABLE_EFFECT + self
function Auxiliary.indsval(e,re,rp)
return rp==e:GetHandlerPlayer()
end
--filter for EFFECT_INDESTRUCTABLE_EFFECT + opponent
function Auxiliary.indoval(e,re,rp)
return rp==1-e:GetHandlerPlayer()
end
--filter for EFFECT_CANNOT_BE_EFFECT_TARGET + self
function Auxiliary.tgsval(e,re,rp)
return rp==e:GetHandlerPlayer()
end
--filter for EFFECT_CANNOT_BE_EFFECT_TARGET + opponent --filter for EFFECT_CANNOT_BE_EFFECT_TARGET + opponent
function Auxiliary.tgoval(e,re,rp) function Auxiliary.tgoval(e,re,rp)
return rp~=e:GetHandlerPlayer() return rp==1-e:GetHandlerPlayer()
end end
--filter for non-zero ATK --filter for non-zero ATK
function Auxiliary.nzatk(c) function Auxiliary.nzatk(c)
......
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