Commit 8935d314 authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#940)

parent 8b3fc1d8
...@@ -13,7 +13,7 @@ function c82116191.initial_effect(c) ...@@ -13,7 +13,7 @@ function c82116191.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c82116191.filter(c) function c82116191.filter(c)
return c:IsRace(RACE_PLANT) and c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsPreviousPosition(POS_FACEUP) and bit.band(c:GetPreviousRaceOnField(),RACE_PLANT)~=0 and c:IsRace(RACE_PLANT) and c:IsPreviousLocation(LOCATION_ONFIELD)
end end
function c82116191.atkcon(e,tp,eg,ep,ev,re,r,rp) function c82116191.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c82116191.filter,1,nil) return eg:IsExists(c82116191.filter,1,nil)
...@@ -28,7 +28,7 @@ function c82116191.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c82116191.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(200) e1:SetValue(200)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end 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