Commit 51a9000a authored by Fluorohydride's avatar Fluorohydride

Merge pull request #609 from sidschingis/master

fix
parents eb27e8d0 49b10cf9
......@@ -32,18 +32,30 @@ function c30834988.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0)
end
function c30834988.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local g=eg:Filter(Card.IsRelateToEffect,nil,e)
Duel.ChangePosition(g,POS_FACEUP_ATTACK)
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_MUST_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=g:GetNext()
end
if Duel.GetFlagEffect(tp,30834988)==0 then
Duel.RegisterFlagEffect(tp,30834988,RESET_PHASE+PHASE_END,0,1)
e:SetLabel(0)
else
local count=e:GetLabel()
e:SetLabel(count+1)
if count>49 then
Duel.SendtoGrave(c,REASON_RULE)
end
end
end
function c30834988.epfilter(c)
return c:IsHasEffect(EFFECT_MUST_ATTACK) and c:IsAttackable()
......
......@@ -15,6 +15,7 @@ function c7625614.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c7625614.atkcon)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c7625614.atktg)
e2:SetValue(1)
......@@ -40,6 +41,9 @@ function c7625614.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc)
end
end
function c7625614.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget():GetControler()==tp
end
function c7625614.atktg(e,c)
return c~=e:GetHandler():GetEquipTarget()
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