Page 1 of 1

Platinum Emperion + Swords to Plowshares

PostPosted: 17 May 2013, 19:00
by Max mtg
Problem:
Keywords are not updated right after the Platinum Emperion has been exiled. Swords to Plowshares keeps resolving and cannot add life to former creature controller.

Solution:
Call forge.game.GameAction.checkStaticAbilities() more frequently... somewhere inside forge.card.ability.AbilityUtils.resolveApiAbility(SpellAbility, boolean, GameState) before proceeding to subabilities.

Won't it ruin anything important?

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 17 May 2013, 21:15
by Sloth
Max mtg wrote:Won't it ruin anything important?
I think it's a necessary step that has to be done sooner or later. Let's see how many bugs pop up.

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 17 May 2013, 21:22
by friarsol
I think certain things should only be run in the current timeframes. Like SA granting abilities and triggers (are they called from there right now?)

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 17 May 2013, 21:43
by Sloth
friarsol wrote:I think certain things should only be run in the current timeframes. Like SA granting abilities and triggers (are they called from there right now?)
Max wants to run checkStaticAbilities which only updates continuous static abilities. checkStateEffects is the beast that should not be called carelessly.

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 17 May 2013, 21:46
by friarsol
Sloth wrote:
friarsol wrote:I think certain things should only be run in the current timeframes. Like SA granting abilities and triggers (are they called from there right now?)
Max wants to run checkStaticAbilities which only updates continuous static abilities. checkStateEffects is the beast that should not be called carelessly.
Ah good. Ok, I was worried for a few minutes there.

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 18 May 2013, 05:41
by Max mtg
Commited: r21511

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 05 Jul 2013, 23:17
by Max mtg
Same starting conditions, but with Elesh Norn, Grand Cenobite on table
Should I get 10 lives? (Actually forge gives 8 - it did so even in 1.4.2 beta)

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 06 Jul 2013, 02:57
by friarsol
Max mtg wrote:Same starting conditions, but with Elesh Norn, Grand Cenobite on table
Should I get 10 lives? (Actually forge gives 8 - it did so even in 1.4.2 beta)
It should be taking LKI of the Emperion, which is 10. "10/1/2008: The amount of life that's gained is equal to the power of the targeted creature as it last existed on the battlefield."

Re: Platinum Emperion + Swords to Plowshares

PostPosted: 06 Jul 2013, 20:49
by Sloth
friarsol wrote:
Max mtg wrote:Same starting conditions, but with Elesh Norn, Grand Cenobite on table
Should I get 10 lives? (Actually forge gives 8 - it did so even in 1.4.2 beta)
It should be taking LKI of the Emperion, which is 10. "10/1/2008: The amount of life that's gained is equal to the power of the targeted creature as it last existed on the battlefield."
Fixed with r22456.