Commit 688d4f7d authored by mercury233's avatar mercury233

fix

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