Commit 67d5cad2 authored by GuGu's avatar GuGu

Update c99999505.lua

parent 74eb40a7
Pipeline #35537 passed with stage
in 4 seconds
......@@ -39,14 +39,14 @@ function c99999505.initial_effect(c)
c:RegisterEffect(e4)
end
function c99999505.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked()
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,99999505,0x6910,TYPES_EFFECT_TRAP_MONSTER,1900,0,5,RACE_MACHINE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c99999505.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler()
if not Duel.IsPlayerCanSpecialSummonMonster(tp,99999505,0x6910,TYPES_EFFECT_TRAP_MONSTER,1900,0,5,RACE_MACHINE,ATTRIBUTE_LIGHT) then return end
if not Duel.IsPlayerCanSpecialSummonMonster(tp,99999505,0x6910,TYPES_EFFECT_TRAP_MONSTER,1900,0,5,RACE_MACHINE,ATTRIBUTE_LIGHT) or not c:IsRelateToEffect(e) then return end
c:AddMonsterAttribute(TYPE_EFFECT)
Duel.SpecialSummon(c,SUMMON_VALUE_SELF,tp,tp,true,false,POS_FACEUP)
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