Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:23
    JayDi85 commented #6226
  • 13:22
    JayDi85 commented #6226
  • 12:42

    JayDi85 on master

    Fixed tests (compare)

  • 12:16
    JayDi85 closed #6233
  • 12:16
    JayDi85 commented on 9deaa4c
  • 12:01
    Veonin commented on 9deaa4c
  • 11:48
    jeffwadsworth commented #6233
  • 10:39
    Veonin opened #6233
  • 09:45
    Ebola16 commented #6226
  • 09:45
    Ebola16 commented #6226
  • 09:40
    Ebola16 edited #6226
  • 09:39
    Ebola16 commented #6226
  • 09:39
    Ebola16 commented #6226
  • 09:36
    EllNubNub opened #6232
  • 08:55
    emerald000 commented #6226
  • 08:03

    JayDi85 on master

    Cleanup code (added logs rotati… (compare)

  • 02:20
    jeffwadsworth commented #6226
  • 02:08

    JayDi85 on master

    Spectral Shield (ICE) Spectral … Merge branch 'master' of https:… In Progress Not Functional Exil… and 5 more (compare)

  • 02:08
    JayDi85 closed #6227
  • 02:05
    dragonfyre23 closed #6231
Zach H
@ZeldaZach
Do you have “any number of targets” as an option
And then can restrict from there
Evan Kranzler
@theelk801
basically with the exception of the two cards I mentioned, every card that divides something X damage (or counters, or prevention, etc) among "any number of targets" isn't actually any number
Bogardan Hellkite can't target more than 5 things
and the code for handling that assumes that the limit is the amount being distributed
because it usually is
except here it isn't
but it's hard to figure out what does and doesn't need to be changed
also Vivien, Arkbow Ranger can target "up to" 2 target creatures, which is also different since distribution effects usually require at least one target
Oleg Agafonov
@JayDi85
@theelk801 it's already have maxNumberOfTargets
Oleg Agafonov
@JayDi85
You can setup it in cards and improve code in TargetAnyTargetAmount to implement support of that limit in maxNumberOfTargets
Oleg Agafonov
@JayDi85
shot_190924_060240.png
shot_190924_060317.png
shot_190924_060404.png
Just add support of maxNumberOfTargets as example above -- that's all.
Evan Kranzler
@theelk801
wow
that's it
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?