Commit 5eb32f9a authored by mallu11's avatar mallu11 Committed by GitHub

fix 天威龍-サハスラーラ (#1328)

parent 2eb0084e
......@@ -58,8 +58,8 @@ function c38030232.tkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local atk=tc:GetBaseAttack()
if not tc:IsRelateToEffect(e) or not tc:IsFaceup() then atk=0 end
if Duel.IsPlayerCanSpecialSummonMonster(tp,38030233,0x12c,0x4011,atk,0,4,RACE_WYRM,ATTRIBUTE_LIGHT) then
local token=Duel.CreateToken(tp,38030233)
local e1=Effect.CreateEffect(c)
......@@ -71,5 +71,4 @@ function c38030232.tkop(e,tp,eg,ep,ev,re,r,rp)
token:RegisterEffect(e1)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
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