Commit 74eb40a7 authored by GuGu's avatar GuGu

Update c99999504.lua

parent 58afc729
Pipeline #35536 passed with stage
in 10 seconds
...@@ -35,14 +35,14 @@ function c99999504.initial_effect(c) ...@@ -35,14 +35,14 @@ function c99999504.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c99999504.target(e,tp,eg,ep,ev,re,r,rp,chk) function c99999504.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked() if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,99999504,0x6910,TYPES_EFFECT_TRAP_MONSTER,1600,400,4,RACE_MACHINE,ATTRIBUTE_LIGHT) end and Duel.IsPlayerCanSpecialSummonMonster(tp,99999504,0x6910,TYPES_EFFECT_TRAP_MONSTER,1600,400,4,RACE_MACHINE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c99999504.activate(e,tp,eg,ep,ev,re,r,rp) function c99999504.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
if not Duel.IsPlayerCanSpecialSummonMonster(tp,99999504,0x6910,TYPES_EFFECT_TRAP_MONSTER,1600,400,4,RACE_MACHINE,ATTRIBUTE_LIGHT) then return end if not Duel.IsPlayerCanSpecialSummonMonster(tp,99999504,0x6910,TYPES_EFFECT_TRAP_MONSTER,1600,400,4,RACE_MACHINE,ATTRIBUTE_LIGHT) or not c:IsRelateToEffect(e) then return end
c:AddMonsterAttribute(TYPE_EFFECT) c:AddMonsterAttribute(TYPE_EFFECT)
Duel.SpecialSummon(c,SUMMON_VALUE_SELF,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(c,SUMMON_VALUE_SELF,tp,tp,true,false,POS_FACEUP)
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