Distribution effects
I've just added the base for damage and damage prevention distribution for cards like Forked Lightning and Angel of Salvation. Two things I haven't been able to do yet (so any help would be appreciated):
* I have no idea how to go about implementing it for the AI. So for now I'm just converting cards that are already flagged with RemAIDeck:True.
* I can't seem to find a way to pass xPaid to the target (so no Rolling Thunder yet
). I tried adding it in AbilityFactory (I left my effort in there as it forms the basic structure of how it would be applied elsewhere. It looks like setXManaCostPaid should be set as soon as you hit the okay button, but I also tried setting the amount to be divided later in the target process in targetSelection, using a boolean to check if the distribution amount has been set, then try get xpaid directly from the card using hostC.getXManaCostPaid(), but that was no more effective. I'd love to get Rolling Thunder working - it was one of those cards that just made me smile whenever I drew it!
EDIT: Damn, just tested using a defined X value like Valid_Card.OppCtrl. That reminded me that X is only paid after targeting. So I might have to find a way to implement an AnnounceX parameter that's handled in AbilityFactory and lets you pick a number from 0 to 99 (unless we already have a way to calculate the amount of potential mana you have through cards on the battlefield - cards in hand not an issue seeing as you can't play spells while paying the cost).
* I have no idea how to go about implementing it for the AI. So for now I'm just converting cards that are already flagged with RemAIDeck:True.
* I can't seem to find a way to pass xPaid to the target (so no Rolling Thunder yet
EDIT: Damn, just tested using a defined X value like Valid_Card.OppCtrl. That reminded me that X is only paid after targeting. So I might have to find a way to implement an AnnounceX parameter that's handled in AbilityFactory and lets you pick a number from 0 to 99 (unless we already have a way to calculate the amount of potential mana you have through cards on the battlefield - cards in hand not an issue seeing as you can't play spells while paying the cost).
I love this community!