Re: Bug Reports (snapshot builds)
@Agetian i think it's good that way. Might me check if the SVar need to be done different on other cards too. (The ones which has this SneakAttack thing with adding the SVar)
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=6333
clearTargets(currentAbility);
if (currentAbility instanceof WrappedAbility) {
clearTargets(((WrappedAbility) currentAbility).getWrappedAbility());
}
@Override
public void resetTargets() {
sa.resetTargets();
}
This passes the initial test (Chandra emblem starts working correctly). What exactly is the special case with DividedAsYouChoose btw?Hanmac wrote:hey because clearTargets just calls resetTargets, why not have WrappedAbility do the thing?PS: hm might not be enough with DividedAsYouChoose :/ but its a beginning
- Code: Select all
@Override
public void resetTargets() {
sa.resetTargets();
}
public final void clearTargets(final SpellAbility ability) {
final TargetRestrictions tg = ability.getTargetRestrictions();
if (tg != null) {
ability.resetTargets();
tg.calculateStillToDivide(ability.getParam("DividedAsYouChoose"), ability.getHostCard(), ability);
}
if (ability instanceof WrappedAbility) {
final SpellAbility wrapSa = ((WrappedAbility) ability).getWrappedAbility();
final TargetRestrictions wrapTg = wrapSa.getTargetRestrictions();
if (wrapTg != null) {
wrapSa.resetTargets();
wrapTg.calculateStillToDivide(wrapSa.getParam("DividedAsYouChoose"), wrapSa.getHostCard(), wrapSa);
}
}
}
ability = ability instanceof WrappedAbility) ? ((WrappedAbility) currentAbility).getWrappedAbility() : ability;
Huch good to know, I might need to add a "isSpell" check to the places where I addthe splices.Marek14 wrote:When processing the delayed trigger of Otherworldly Journey, I get splice dialogue.
Yes, I find it more intuitive than the way it was before for sure!Hanmac wrote:Huch good to know, I might need to add a "isSpell" check to the places where I addthe splices.Marek14 wrote:When processing the delayed trigger of Otherworldly Journey, I get splice dialogue.
PS: do you guys like what I did with the Splice Dialog?