Commit 91dd8e34 authored by wyykak's avatar wyykak

fix

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 1867165d
......@@ -39,13 +39,13 @@ end
function c22261103.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if Duel.GetMZoneCount(tp)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,e:GetHandler():GetCode(),0,0x11,0,0,1,RACE_CYBERSE,ATTRIBUTE_DARK) then
if tc and Duel.GetMZoneCount(tp)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,e:GetHandler():GetCode(),0,0x11,0,0,1,RACE_CYBERSE,ATTRIBUTE_DARK) then
c:AddMonsterAttribute(TYPE_NORMAL,ATTRIBUTE_DARK,RACE_CYBERSE,1,0,0)
if Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)>0 then
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_CHANGE_CODE)
e0:SetValue(code)
e0:SetValue(tc:GetCode())
e0:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e0,true)
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