Commit 8fc5f3f0 authored by mercury233's avatar mercury233 Committed by GitHub

fix 機皇神龍アステリスク

parent cddde790
...@@ -53,15 +53,8 @@ function c38522377.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,15 +53,8 @@ function c38522377.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_GRAVE)
local tc=og:GetFirst() local atk=og:GetSum(Card.GetBaseAttack)
local atk=0
while tc do
local oatk=tc:GetTextAttack()
if oatk<0 then oatk=0 end
atk=atk+oatk
tc=og:GetNext()
end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
......
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