Permalink
Browse files

fix

  • Loading branch information...
1 parent c873a83 commit 4965567fba96c3a93f3548b033d6f8d51f2ccf4c @Fluorohydride committed May 2, 2012
Showing with 9 additions and 4 deletions.
  1. +2 −2 gframe/game.cpp
  2. +7 −2 script/c18605135.lua
View
@@ -13,7 +13,7 @@
#include <dirent.h>
#endif
-const unsigned short PRO_VERSION = 0x1270;
+const unsigned short PRO_VERSION = 0x1271;
namespace ygo {
@@ -789,7 +789,7 @@ void Game::AddChatMsg(wchar_t* msg, int player) {
chatMsg[0].append(L"[Script error:] ");
break;
default: //from watcher or unknown
- chatMsg[0].append(L"[***]: ");
+ chatMsg[0].append(L"[---]: ");
}
chatMsg[0].append(msg);
View
@@ -24,12 +24,17 @@ function c18605135.initial_effect(c)
e3:SetCondition(c18605135.sdcon)
c:RegisterEffect(e3)
end
+function c18605135.filter(c)
+ return c:IsFaceup() and c:IsCode(22702055)
+end
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
function c18605135.abdcon(e)
return Duel.GetAttackTarget()==nil or Duel.GetAttackTarget():IsAttackPos() or Duel.GetAttacker():GetAttack()>Duel.GetAttackTarget():GetDefence()
end
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

0 comments on commit 4965567

Please sign in to comment.