Commit 135c9200 authored by POLYMER's avatar POLYMER

fix

parent ca9d2f59
......@@ -130,16 +130,16 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_RELEASE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,1)
e1:SetTargetRange(0x04,0)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(cm.aclimit)
e1:SetValue(1)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_UNRELEASABLE_SUM)
Duel.RegisterEffect(e2,tp)
end
function cm.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_MZONE and tp==e:GetHandlerPlayer()
local e3=e2:Clone()
e3:SetCode(EFFECT_UNRELEASABLE_NONSUM)
Duel.RegisterEffect(e3,tp)
end
--03
function cm.copycost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -66,9 +66,7 @@ function c11612636.initial_effect(c)
c:RegisterEffect(e2)
end
function c11612636.efilter(e,te)
local tc=te:GetOwner()
local c=e:GetHandler()
return not tc:IsLevelAbove(0) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(0x1) and not te:GetHandler():IsLevelAbove(1)
end
function c11612636.lvfilter(c,rc)
return c:GetRitualLevel(rc)>0
......
......@@ -30,12 +30,11 @@ function c11612640.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(11612640,1))
e3:SetCategory(CATEGORY_DRAW)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c11612640.drcon)
e3:SetTarget(c11612640.drtg)
e3:SetOperation(c11612640.drop)
c:RegisterEffect(e3)
end
......@@ -45,15 +44,9 @@ function c11612640.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget()==eg:GetFirst() and ec:IsControler(tp)
and bc:IsLocation(LOCATION_GRAVE) and bc:IsReason(REASON_BATTLE)
end
function c11612640.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c11612640.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
Duel.Hint(HINT_CARD,0,11612640)
Duel.Draw(tp,1,REASON_EFFECT)
end
function c11612640.eqfilter(c)
return c:IsFaceup() and c:IsSetCard(0x154)
......
......@@ -99,23 +99,23 @@ function c11612642.efilter(e,re)
return not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function c11612642.tfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x154) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
return c:IsFaceup() and c:IsSetCard(0x154) and c:IsControler(tp)
end
function c11612642.negcon(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(c11612642.tfilter,1,nil,tp)
return g:GetCount()>0 and rp==1-tp and g:FilterCount(c11612642.tfilter,nil,tp)==#g
end
function c11612642.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end
and c:IsCanBeSpecialSummoned(e,0,tp,true,true) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
function c11612642.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)>0 then
if Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP_DEFENSE)>0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
......
......@@ -108,7 +108,7 @@ function c11612644.initial_effect(c)
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(11612644,3))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
--e5:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e5:SetCode(EVENT_TO_GRAVE)
e5:SetCountLimit(1,11612645)
......
......@@ -18,9 +18,10 @@ function cm.initial_effect(c)
end
function c22348323.effcon(e,tp,eg,ep,ev,re,r,rp)
local ex2,g2,gc2,dp2,dv2=Duel.GetOperationInfo(ev,CATEGORY_SPECIAL_SUMMON)
local ex5,g5,gc5,dp5,dv5=Duel.GetOperationInfo(ev,CATEGORY_TOHAND)
local ex3=re:IsHasCategory(CATEGORY_DRAW)
local ex4=re:IsHasCategory(CATEGORY_SEARCH)
return (ex2 and bit.band(dv2,LOCATION_DECK)==LOCATION_DECK) or ex3 or ex4
return (ex2 and bit.band(dv2,LOCATION_DECK)==LOCATION_DECK) or ex3 or ex4 or (ex5 and bit.band(dv5,LOCATION_DECK)==LOCATION_DECK)
end
function c22348323.drfilter(c)
return c:IsRace(RACE_SPELLCASTER) and c:IsDiscardable()
......
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