Commit 4965567f authored by argon.sun's avatar argon.sun

fix

parent c873a83c
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <dirent.h> #include <dirent.h>
#endif #endif
const unsigned short PRO_VERSION = 0x1270; const unsigned short PRO_VERSION = 0x1271;
namespace ygo { namespace ygo {
...@@ -789,7 +789,7 @@ void Game::AddChatMsg(wchar_t* msg, int player) { ...@@ -789,7 +789,7 @@ void Game::AddChatMsg(wchar_t* msg, int player) {
chatMsg[0].append(L"[Script error:] "); chatMsg[0].append(L"[Script error:] ");
break; break;
default: //from watcher or unknown default: //from watcher or unknown
chatMsg[0].append(L"[***]: "); chatMsg[0].append(L"[---]: ");
} }
chatMsg[0].append(msg); chatMsg[0].append(msg);
......
...@@ -24,12 +24,17 @@ function c18605135.initial_effect(c) ...@@ -24,12 +24,17 @@ function c18605135.initial_effect(c)
e3:SetCondition(c18605135.sdcon) e3:SetCondition(c18605135.sdcon)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c18605135.filter(c)
return c:IsFaceup() and c:IsCode(22702055)
end
function c18605135.actcon(e,tp,eg,ep,ev,re,r,rp) function c18605135.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetEnvironment()==22702055 return Duel.IsExistingMatchingCard(c18605135.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
or Duel.GetEnvironment()==22702055
end end
function c18605135.abdcon(e) function c18605135.abdcon(e)
return Duel.GetAttackTarget()==nil or Duel.GetAttackTarget():IsAttackPos() or Duel.GetAttacker():GetAttack()>Duel.GetAttackTarget():GetDefence() return Duel.GetAttackTarget()==nil or Duel.GetAttackTarget():IsAttackPos() or Duel.GetAttacker():GetAttack()>Duel.GetAttackTarget():GetDefence()
end end
function c18605135.sdcon(e) function c18605135.sdcon(e)
return Duel.GetEnvironment()~=22702055 return Duel.IsExistingMatchingCard(c18605135.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
or Duel.GetEnvironment()==22702055
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