Commit 46a13055 authored by salix5's avatar salix5

Merge pull request #1491 from Steeldarkeagel/patch-52

Update c712559.lua
parents 2ec69a70 8e87457c
...@@ -28,14 +28,11 @@ function c712559.initial_effect(c) ...@@ -28,14 +28,11 @@ function c712559.initial_effect(c)
e3:SetOperation(c712559.operation) e3:SetOperation(c712559.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c712559.cfilter(c)
return c:IsReason(REASON_DESTROY) and c:IsLevelAbove(1) and c:IsSetCard(0x4)
end
function c712559.condition(e,tp,eg,ep,ev,re,r,rp) function c712559.condition(e,tp,eg,ep,ev,re,r,rp)
local lv=0 local lv=0
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
if tc:IsReason(REASON_DESTROY) and tc:IsSetCard(0x4) then if tc:IsReason(REASON_DESTROY) and tc:IsSetCard(0x4) and not tc:IsPreviousLocation(LOCATION_SZONE) then
local tlv=tc:GetLevel() local tlv=tc:GetLevel()
if tlv>lv then lv=tlv end if tlv>lv then lv=tlv 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