Commit 688d4f7d authored by mercury233's avatar mercury233

fix

parent 36c6a6fb
......@@ -41,15 +41,15 @@ end
function c100264002.discon(e,tp,eg,ep,ev,re,r,rp)
if ep==tp or e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or not Duel.IsChainNegatable(ev) then return false end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if g:GetCount()==0 or not re:IsActiveType(TYPE_MONSTER) then return false end
local tc=g:GetFirst()
local attr=0
while tc do
attr=attr|tc:GetAttribute()
tc=g:GetNext()
end
if g:GetCount()==0 or not re:IsActiveType(TYPE_MONSTER) then return false end
local rc=re:GetHandler()
return not rc:IsAttribute(attr)
local rattr=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_ATTRIBUTE)
return rattr&attr==0
end
function c100264002.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -35,20 +35,20 @@ function c101101069.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetCondition(c101101069.imcon)
e1:SetValue(aux.tgoval)
e1:SetValue(c101101069.tgval)
e1:SetOwnerPlayer(tp)
tc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101101069,0))
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetCondition(c101101069.imcon)
e2:SetValue(aux.indoval)
e2:SetValue(c101101069.tgval)
e2:SetOwnerPlayer(tp)
tc:RegisterEffect(e2,true)
end
end
function c101101069.imcon(e)
return e:GetHandlerPlayer()==e:GetOwnerPlayer()
function c101101069.tgval(e,re,rp)
return rp==1-e:GetOwnerPlayer()
end
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