by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 02 23:29
    jasc7636 commented #6588
  • Jun 02 23:26
    jasc7636 commented #6588
  • Jun 02 23:01
    jasc7636 synchronize #6588
  • Jun 02 20:48
    Bellzworth09 opened #6601
  • Jun 02 20:21
    LevelX2 labeled #6571
  • Jun 02 20:21
    LevelX2 assigned #6571
  • Jun 02 20:03
    18ths commented #6600
  • Jun 02 19:51
    18ths commented #6600
  • Jun 02 18:32
    JayDi85 commented #6600
  • Jun 02 18:23
    18ths opened #6600
  • Jun 02 15:48

    jeffwadsworth on master

    - Little fix Cradle of Vitality… (compare)

  • Jun 02 15:11

    theelk801 on master

    updated standard ban list (compare)

  • Jun 02 12:59
    emerald000 commented #6548
  • Jun 02 12:07
    ThomasArb commented #6465
  • Jun 02 12:06
    ThomasArb commented #6465
  • Jun 02 11:21
    johnmeat opened #6599
  • Jun 02 09:46
    Zerrisx commented #6548
  • Jun 02 09:07
    LevelX2 edited #6571
  • Jun 02 05:42
    htrajan commented #6390
  • Jun 02 05:32
    etpalmer63 commented #6548
Evan Kranzler
@theelk801
thank you
Evan Kranzler
@theelk801
so I'm testing it, and it doesn't work
doesn't prevent you from choosing more than the maximum amount
Oleg Agafonov
@JayDi85
You must add same code in all other places like possibleTargets, canChoose, etc
canTarget, canChoose, possibleTargets
Evan Kranzler
@theelk801
alright
so just add if (getMaxNumberOfTargets() > 0 && getTargets().size() >= getMaxNumberOfTargets()) {return false;}to the boolean methods?
Oleg Agafonov
@JayDi85
nope
you can choose already choosen
if... return getTargets.contain(objectId)
Evan Kranzler
@theelk801
ah ok
do that for both boolean methods?
Oleg Agafonov
@JayDi85
yearh
hmm
Evan Kranzler
@theelk801
wait, for canChoose
don't I just return false there?
Oleg Agafonov
@JayDi85
I don't think so... if you reach max limit then you can choose between already selected, but not new
Evan Kranzler
@theelk801
do you mind implementing the changes and pushing them?
Oleg Agafonov
@JayDi85
nope, thats for you)
but canTarget code... you must test (is it need limit code or not)
Evan Kranzler
@theelk801
I implemented the changes you suggested but I can still select more than the maximum
Oleg Agafonov
@JayDi85
well, then I'll debug it later
it's can be canTarget problem
Evan Kranzler
@theelk801
I'm going to bed
but thanks for the help
Oleg Agafonov
@JayDi85
TargetAmout was improved by magefree/mage@bad26b1
Fenhl
@fenhl
hey, where are the XMage client preferences stored?
Fenhl
@fenhl
ah, found it (for Windows, in the registry at Computer\HKEY_CURRENT_USER\Software\JavaSoft\Prefs\mage\client)
Evan Kranzler
@theelk801
@JayDi85 awesome, thanks again for doing that
Zach H
@ZeldaZach
You got it working?
Evan Kranzler
@theelk801
yeah he made it work
although I need to apply the changes to TargetCreaturePermanentAmount so I can finally implement Forked Lightning
Fenhl
@fenhl
hey, what's the opinion on custom sets here?
there's that Star Wars set, but I'm considering XMage for a custom format with multiple sets
and I'm wondering if that's something that could go in the main repo or if a fork would be better
Zach H
@ZeldaZach
Probably a fork
That’s not really official and most people won’t want non official cards
Fenhl
@fenhl
XMage already has unofficial cards
Evan Kranzler
@theelk801
yeah we do have the star wars cards for some reason but adding new sets potentially leads to issues so we prefer not to
Fenhl
@fenhl
makes sense
are there any custom sets implemented in Java using the plugin system?
@Lymia has an example but it's in Scala which doesn't help much with copy/pasting card abilities
Oleg Agafonov
@JayDi85
@fenhl if you make good and popular custom set then it's can be added to xmage
xmage's server support to load custom sets (e.g. official don't have set but unofficial server have it -- users connects to server, download new cards and play on it)
Fenhl
@fenhl
@JayDi85 I'm talking about a series of formats (Standard/Eternal/Commander) with several custom sets
the Commander format (called Elder Cockatrice Highlander) currently has 15 custom sets in it
Oleg Agafonov
@JayDi85
formats uses same architecture -- you can make custom format, put it to server and config and play
Fenhl
@fenhl
yes, I'm trying to figure out how
Oleg Agafonov
@JayDi85
You can find any other format's files/config and research it