Commit 0120e7e6 authored by POLYMER's avatar POLYMER

fix

parent cc5914f3
...@@ -39,8 +39,13 @@ function cm.initial_effect(c) ...@@ -39,8 +39,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e6=e3:Clone() local e6=e3:Clone()
e6:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL) e6:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
e6:SetValue(cm.fuslimit)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function cm.fuslimit(e,c,sumtype)
if not c then return false end
return sumtype==SUMMON_TYPE_FUSION
end
function cm.tg(e,c) function cm.tg(e,c)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
return c:IsSummonType(SUMMON_TYPE_SPECIAL) and not ((phase==PHASE_DAMAGE and not Duel.IsDamageCalculated()) or phase==PHASE_DAMAGE_CAL or e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or c:IsStatus(STATUS_BATTLE_DESTROYED)) --and c:IsStatus(STATUS_SPSUMMON_TURN) return c:IsSummonType(SUMMON_TYPE_SPECIAL) and not ((phase==PHASE_DAMAGE and not Duel.IsDamageCalculated()) or phase==PHASE_DAMAGE_CAL or e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or c:IsStatus(STATUS_BATTLE_DESTROYED)) --and c:IsStatus(STATUS_SPSUMMON_TURN)
......
...@@ -69,10 +69,12 @@ end ...@@ -69,10 +69,12 @@ end
function c12847068.tgop(e,tp,eg,ep,ev,re,r,rp) function c12847068.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tc=Duel.GetFieldCard(tp,LOCATION_GRAVE,Duel.GetFieldGroupCount(tp,LOCATION_GRAVE,0)-1) local tc=Duel.GetFieldCard(tp,LOCATION_GRAVE,Duel.GetFieldGroupCount(tp,LOCATION_GRAVE,0)-1)
if tc then
local type=bit.band(tc:GetType(),0x7) local type=bit.band(tc:GetType(),0x7)
local g=Duel.SelectMatchingCard(tp,c12847068.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,type) local g=Duel.SelectMatchingCard(tp,c12847068.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,type)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end
end end
end end
\ No newline at end of file
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