Commit f3c44a6b authored by DailyShana's avatar DailyShana

fix

parent c7bd0810
...@@ -8,7 +8,7 @@ function c15854426.initial_effect(c) ...@@ -8,7 +8,7 @@ function c15854426.initial_effect(c)
--special summon --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(15854426,0)) e2:SetDescription(aux.Stringid(15854426,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
......
...@@ -32,12 +32,20 @@ function c50078320.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,12 +32,20 @@ function c50078320.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c50078320.operation(e,tp,eg,ep,ev,re,r,rp) function c50078320.operation(e,tp,eg,ep,ev,re,r,rp)
local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_ANNOUNCE) local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_ANNOUNCE)
local code=Duel.GetChainInfo(ev,CHAININFO_TARGET_PARAM)
local ac=0 local ac=0
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
if bit.band(cv,ANNOUNCE_CARD)~=0 then if bit.band(cv,ANNOUNCE_CARD)~=0 then
ac=Duel.AnnounceCard(tp,cv) --c:IsType(cv) and not c:IsCode(code)
ac=Duel.AnnounceCardFilter(tp,cv,OPCODE_ISTYPE,code,OPCODE_ISCODE,OPCODE_NOT,OPCODE_AND)
else else
ac=Duel.AnnounceCardFilter(tp,table.unpack(re:GetHandler().announce_filter)) local afilter={table.unpack(re:GetHandler().announce_filter)}
--and not c:IsCode(code)
table.insert(afilter,code)
table.insert(afilter,OPCODE_ISCODE)
table.insert(afilter,OPCODE_NOT)
table.insert(afilter,OPCODE_AND)
ac=Duel.AnnounceCardFilter(tp,table.unpack(afilter))
end end
Duel.ChangeTargetParam(ev,ac) Duel.ChangeTargetParam(ev,ac)
end end
......
...@@ -16,12 +16,12 @@ function c52860176.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,12 +16,12 @@ function c52860176.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c52860176.filter(c) function c52860176.filter(c)
return c:IsFaceup() and c:IsLevelBelow(3) and c:IsControlerCanBeChanged() return c:IsFaceup() and c:IsLevelBelow(3) and c:IsControlerCanBeChanged(true)
end end
function c52860176.target(e,tp,eg,ep,ev,re,r,rp,chk) function c52860176.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 local g=Duel.GetMatchingGroup(c52860176.filter,tp,0,LOCATION_MZONE,nil)
and Duel.IsExistingMatchingCard(c52860176.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return g:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE,1-tp,LOCATION_REASON_CONTROL)>=-1+g:GetCount() end
Duel.SetOperationInfo(0,CATEGORY_CONTROL,nil,1,1-tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0)
end end
function c52860176.operation(e,tp,eg,ep,ev,re,r,rp) function c52860176.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c52860176.filter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c52860176.filter,tp,0,LOCATION_MZONE,nil)
......
...@@ -50,6 +50,7 @@ function c74003290.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +50,7 @@ function c74003290.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET) e2:SetValue(RESET_TURN_SET)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
Duel.AdjustInstantly(tc)
local e3=e1:Clone() local e3=e1:Clone()
e3:SetCode(EFFECT_SET_BASE_ATTACK) e3:SetCode(EFFECT_SET_BASE_ATTACK)
e3:SetValue(tc:GetBaseAttack()/2) e3:SetValue(tc:GetBaseAttack()/2)
......
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