Commit 105a4185 authored by salix5's avatar salix5

fix 粘着落とし穴

https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=2&cid=5624&request_locale=en
When your opponent Summons a monster(s): Halve that monster(s)'s original ATK.
parent d5929000
...@@ -29,15 +29,13 @@ function c62325062.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,15 +29,13 @@ function c62325062.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c62325062.filter2,nil,e,tp) local g=eg:Filter(c62325062.filter2,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local atk=math.ceil(tc:GetBaseAttack()/2)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK) e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetValue(c62325062.atkval) e1:SetValue(atk)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=g:GetNext() tc=g:GetNext()
end end
end end
function c62325062.atkval(e,c)
return math.ceil(c:GetBaseAttack()/2)
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