Commit 9af7e8bb authored by salix5's avatar salix5

Merge pull request #1174 from nekrozar/patch-1

fix Yosenju Oyamabiko
parents f81cd91f 5276e187
...@@ -52,10 +52,14 @@ function c69838592.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,10 +52,14 @@ function c69838592.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c69838592.filter(c,tc)
if not c:IsFaceup() then return false end
return tc:GetBaseAttack()~=c:GetAttack() or c:GetBaseAttack()~=c:GetDefence()
end
function c69838592.condition(e,tp,eg,ep,ev,re,r,rp) function c69838592.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return c:IsRelateToBattle() and bc and bc:IsFaceup() and bc:IsRelateToBattle() return c:IsRelateToBattle() and bc and c69838592.filter(c,bc) and bc:IsFaceup() and bc:IsRelateToBattle()
end end
function c69838592.operation(e,tp,eg,ep,ev,re,r,rp) function c69838592.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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