Commit b272fb13 authored by argon.sun's avatar argon.sun

fix

parent 380a8974
...@@ -1142,7 +1142,7 @@ int32 scriptlib::duel_change_battle_damage(lua_State *L) { ...@@ -1142,7 +1142,7 @@ int32 scriptlib::duel_change_battle_damage(lua_State *L) {
int32 check = TRUE; int32 check = TRUE;
if(lua_gettop(L) >= 3) if(lua_gettop(L) >= 3)
check = lua_toboolean(L, 3); check = lua_toboolean(L, 3);
if(check && dam == 0) if(check && pduel->game_field->core.battle_damage[playerid] == 0)
return 0; return 0;
pduel->game_field->core.battle_damage[playerid] = dam; pduel->game_field->core.battle_damage[playerid] = dam;
return 0; return 0;
......
...@@ -28,6 +28,7 @@ end ...@@ -28,6 +28,7 @@ end
function c34460239.activate(e,tp,eg,ep,ev,re,r,rp) function c34460239.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then
Duel.BreakEffect()
local hc=Duel.GetFirstMatchingCard(c34460239.filter2,tp,LOCATION_DECK,0,nil,tc:GetCode()) local hc=Duel.GetFirstMatchingCard(c34460239.filter2,tp,LOCATION_DECK,0,nil,tc:GetCode())
if hc then if hc then
Duel.SendtoHand(hc,nil,REASON_EFFECT) Duel.SendtoHand(hc,nil,REASON_EFFECT)
......
...@@ -17,12 +17,12 @@ function c49267971.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,12 +17,12 @@ function c49267971.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c49267971.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c49267971.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) if chk==0 then return Duel.IsExistingTarget(Card.IsPosition,tp,0,LOCATION_MZONE,1,nil,POS_FACEUP_DEFENCE)
and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end and Duel.IsExistingTarget(Card.IsPosition,tp,LOCATION_MZONE,0,1,nil,POS_FACEUP_ATTACK) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
local g1=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) local g1=Duel.SelectTarget(tp,Card.IsPosition,tp,0,LOCATION_MZONE,1,1,nil,POS_FACEUP_DEFENCE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local g2=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil) local g2=Duel.SelectTarget(tp,Card.IsPosition,tp,LOCATION_MZONE,0,1,1,nil,POS_FACEUP_ATTACK)
e:SetLabelObject(g1:GetFirst()) e:SetLabelObject(g1:GetFirst())
end end
function c49267971.activate(e,tp,eg,ep,ev,re,r,rp) function c49267971.activate(e,tp,eg,ep,ev,re,r,rp)
......
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