Commit e72c6077 authored by fallenstardust's avatar fallenstardust

fix MZMI-EN004\007 scripts

parent 431bd302
No preview for this file type
...@@ -24,6 +24,7 @@ function s.initial_effect(c) ...@@ -24,6 +24,7 @@ function s.initial_effect(c)
e3:SetCategory(CATEGORY_ATKCHANGE) e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_START) e3:SetCode(EVENT_BATTLE_START)
e3:SetCountLimit(1,id+o)
e3:SetCondition(s.atkcon) e3:SetCondition(s.atkcon)
e3:SetOperation(s.atkop) e3:SetOperation(s.atkop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -33,6 +33,11 @@ function s.initial_effect(c) ...@@ -33,6 +33,11 @@ function s.initial_effect(c)
e4:SetTarget(s.sptg) e4:SetTarget(s.sptg)
e4:SetOperation(s.spop) e4:SetOperation(s.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_EQUIP)
e5:SetCode(EFFECT_UPDATE_ATTACK)
e5:SetValue(700)
c:RegisterEffect(e5)
end end
function s.eqlimit(e,c) function s.eqlimit(e,c)
return c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) return c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE)
...@@ -67,6 +72,7 @@ end ...@@ -67,6 +72,7 @@ end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and c:GetControler()==c:GetEquipTarget():GetControler() if chk==0 then return c:IsAbleToGraveAsCost() and c:GetControler()==c:GetEquipTarget():GetControler()
and c:GetEquipTarget():IsType(TYPE_FUSION)
and c:GetEquipTarget():IsAbleToGraveAsCost() end and c:GetEquipTarget():IsAbleToGraveAsCost() end
local g=Group.FromCards(c,c:GetEquipTarget()) local g=Group.FromCards(c,c:GetEquipTarget())
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
......
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