Commit 4d33b57c authored by POLYMER's avatar POLYMER

fix

parent 18a502af
......@@ -56,6 +56,9 @@ function c11561058.xbop(e,tp,eg,ep,ev,re,r,rp)
local ac=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
local g=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_HAND,nil,ac)
local ct
local hg=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if hg:GetCount()==0 then return end
Duel.ConfirmCards(tp,hg)
if g:GetCount()>0 then
ct=Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
c11561058[1-tp]=c11561058[1-tp]+ct
......
......@@ -4660,7 +4660,7 @@ end
function cm.ActivatedAsSpellorTrap(c,otyp,loc,setava,owne)
local e1=nil
if owne then e1=owne else
local e1=Effect.CreateEffect(c)
e1=Effect.CreateEffect(c)
if otyp&(TYPE_TRAP+TYPE_QUICKPLAY)~=0 then
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
......@@ -4936,6 +4936,7 @@ function cm.AASTcostop(otyp)
elseif not c:IsLocation(LOCATION_SZONE) then
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,false)
end
if c:IsPreviousLocation(LOCATION_HAND) then c:SetStatus(STATUS_ACT_FROM_HAND,true) end
xe1:SetLabel(c:GetSequence()+1,otyp)
e0:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
c:CreateEffectRelation(te)
......@@ -5608,9 +5609,25 @@ function cm.ActivatedAsSpellorTrapCheck(c)
end
return table.unpack(t)
end
ADIMI_NegateActivation=Duel.NegateActivation
Duel.NegateActivation=function(chainc)
local re=ADIMI_GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT)
local xe={}
if re and re:GetHandler() then xe={re:GetHandler():IsHasEffect(53765099)} end
local b=false
for _,v in pairs(xe) do if re==v:GetLabelObject() then b=true end end
local res=ADIMI_NegateActivation(chainc)
if res and b then
local rc=re:GetHandler()
if rc and rc:IsRelateToEffect(re) and not (rc:IsOnField() and rc:IsFacedown()) then
rc:SetStatus(STATUS_ACTIVATE_DISABLED,true)
end
end
return res
end
ADIMI_ChangeChainOperation=Duel.ChangeChainOperation
Duel.ChangeChainOperation=function(chainc,...)
local re=Duel.GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT)
local re=ADIMI_GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT)
local xe={}
if re and re:GetHandler() then xe={re:GetHandler():IsHasEffect(53765099)} end
local b=false
......
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