Commit b6a5bd46 authored by Fluorohydride's avatar Fluorohydride

fix

parent abb66085
...@@ -38,7 +38,7 @@ function c18027138.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c18027138.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(1,0) e3:SetAbsoluteRange(tp,1,0)
e3:SetTarget(c18027138.splimit) e3:SetTarget(c18027138.splimit)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT+0x1fe0000)
token:RegisterEffect(e3) token:RegisterEffect(e3)
......
...@@ -9,7 +9,7 @@ function c29143726.initial_effect(c) ...@@ -9,7 +9,7 @@ function c29143726.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetCountLimit(1,29143726) e1:SetCountLimit(1,29143726)
e1:SetCondition(c29143726.spcon1) e1:SetCondition(c29143726.spcon1)
e1:SetTarget(c29143726.sptg) e1:SetTarget(c29143726.sptg)
......
...@@ -10,7 +10,7 @@ function c33698022.initial_effect(c) ...@@ -10,7 +10,7 @@ function c33698022.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCost(c33698022.thcost) e1:SetCountLimit(1,33698022)
e1:SetTarget(c33698022.thtg) e1:SetTarget(c33698022.thtg)
e1:SetOperation(c33698022.thop) e1:SetOperation(c33698022.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -21,8 +21,8 @@ function c33698022.initial_effect(c) ...@@ -21,8 +21,8 @@ function c33698022.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,33698022)
e2:SetCondition(c33698022.thcon) e2:SetCondition(c33698022.thcon)
e2:SetCost(c33698022.thcost)
e2:SetTarget(c33698022.thtg) e2:SetTarget(c33698022.thtg)
e2:SetOperation(c33698022.thop) e2:SetOperation(c33698022.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -33,10 +33,6 @@ end ...@@ -33,10 +33,6 @@ end
function c33698022.thcon(e,tp,eg,ep,ev,re,r,rp) function c33698022.thcon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c33698022.cfilter,1,nil,1-tp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(c33698022.cfilter,1,nil,1-tp)
end end
function c33698022.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,33698022)==0 end
Duel.RegisterFlagEffect(tp,33698022,RESET_PHASE+PHASE_END,0,1)
end
function c33698022.filter(c) function c33698022.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToHand() return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToHand()
end end
......
...@@ -74,7 +74,7 @@ function c43577607.repfilter(c,tp) ...@@ -74,7 +74,7 @@ function c43577607.repfilter(c,tp)
end end
function c43577607.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c43577607.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c43577607.repfilter,1,nil,tp) end if chk==0 then return eg:IsExists(c43577607.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(43577607,0)) return Duel.SelectYesNo(tp,aux.Stringid(43577607,1))
end end
function c43577607.repval(e,c) function c43577607.repval(e,c)
return c43577607.repfilter(c,e:GetHandlerPlayer()) return c43577607.repfilter(c,e:GetHandlerPlayer())
......
...@@ -22,8 +22,8 @@ function c96471335.initial_effect(c) ...@@ -22,8 +22,8 @@ function c96471335.initial_effect(c)
e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,96471335)
e2:SetCondition(c96471335.rmcon) e2:SetCondition(c96471335.rmcon)
e2:SetCost(c96471335.rmcost)
e2:SetTarget(c96471335.rmtg) e2:SetTarget(c96471335.rmtg)
e2:SetOperation(c96471335.rmop) e2:SetOperation(c96471335.rmop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -53,10 +53,6 @@ function c96471335.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,10 +53,6 @@ function c96471335.rmcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
return tc:IsType(TYPE_NORMAL) and tc:IsRace(RACE_SPELLCASTER) return tc:IsType(TYPE_NORMAL) and tc:IsRace(RACE_SPELLCASTER)
end end
function c96471335.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,96471335)==0 end
Duel.RegisterFlagEffect(tp,96471335,RESET_PHASE+PHASE_END,0,1)
end
function c96471335.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c96471335.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToRemove() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToRemove() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -427,4 +427,4 @@ ...@@ -427,4 +427,4 @@
!counter 0x2d 指示物(踢火) !counter 0x2d 指示物(踢火)
!counter 0x2e 鲨指示物 !counter 0x2e 鲨指示物
!counter 0x2f 南瓜指示物 !counter 0x2f 南瓜指示物
!counter 0x30 ???指示物 !counter 0x30 毅飞冲天指示物
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