Commit b8896c5e authored by Fluorohydride's avatar Fluorohydride

Merge pull request #572 from sidschingis/patch-4

fix
parents 5518852b 0828dc37
......@@ -38,7 +38,7 @@ function c14017402.splimit(e,se,sp,st)
return true
end
function c14017402.refcon(e,re,val,r,rp,rc)
return bit.band(r,REASON_EFFECT)~=0 and rp~=e:GetHandler():GetControler()
return bit.band(r,REASON_EFFECT)~=0 and rp~=e:GetHandler():GetControler() and e:GetHandler():IsAttackPos()
end
function c14017402.ffilter(c)
return c:IsRace(RACE_DRAGON) and c:IsType(TYPE_SYNCHRO)
......
......@@ -35,6 +35,7 @@ function c16435215.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg1,REASON_EFFECT+REASON_DISCARD)
Duel.ShuffleHand(tp)
Duel.ShuffleHand(1-tp)
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
Duel.Draw(1-tp,1,REASON_EFFECT)
end
......@@ -41,7 +41,7 @@ function c55727845.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(atk)
e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e2)
end
end
......@@ -83,15 +83,16 @@ function c74530899.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,ct*300,REASON_EFFECT)
end
function c74530899.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.GetTurnPlayer()==e:GetHandler():GetControler()
end
function c74530899.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
e:GetHandler():CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
end
function c74530899.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
if c:IsRelateToEffect(e) then
Duel.SendtoDeck(c,nil,2,REASON_EFFECT)
end
end
......@@ -19,7 +19,7 @@ function c92418590.initial_effect(c)
c:RegisterEffect(e2)
end
function c92418590.cfilter(c)
return c:IsSetCard(0x83) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x83) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER)
end
function c92418590.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,92418590)==0
......
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