Highlander2
an update of Jed's highlander script; added a check for 60 card minimum.
#include 157
bool DEBUG = true;
bool isDeckValid( Player p )
{
string s = getFirstDeckDupe( p );
Player pNull;
if( s != "" )
{
statusMsg( pNull, "This is Highlander. You can only have one copy of any card in your deck." );
statusMsg( pNull, "{u," + p.getID() + "} has a duplicate {C," + s + "}. Please select another deck." );
return false;
}
if( p.deckSize() < 60 )
{
statusMsg( pNull, "This is Highlander. Your deck must contain at least 60 cards. Please select another deck." );
return false;
}
return true;
}