tag:blogger.com,1999:blog-7523569453469773247.post5672936982692970341..comments2015-02-11T12:13:10.578+01:00Comments on Laterna Magica: MtG programming: DestructionUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-7523569453469773247.post-34378696157073597292010-07-29T22:27:17.545+02:002010-07-29T22:27:17.545+02:00man, somehow I had a blackout while writing this e...man, somehow I had a blackout while writing this example; i wanted to do a replacement effect of course, like<br /><br />"if a creature would be destroyed, draw a card instead"<br /><br />I share your opinion though; it feels more natural that you don't draw a card, but the problem is pretty hard. consider this:<br /><br />if ~ would be sacrificed, destroy it instead<br /><br />this would be just crazy, it would mean I have to check for indestructible in my replacement engine. execute0 is not enough since the destroy event could be replaced again - which shouldn't happen considering this interpretation of the rulesSilly Freakhttps://www.blogger.com/profile/09963238585847993157noreply@blogger.comtag:blogger.com,1999:blog-7523569453469773247.post-18647698937871032672010-07-29T19:35:45.796+02:002010-07-29T19:35:45.796+02:00you have a point here; are you sure that destroyin...you have a point here; are you sure that destroying an indestructible permanent doesn't allow replacement effects, though? like in:<br /><br />"whenever a creature is destroyed, draw a card"<br /><br />would I draw a card?Silly Freakhttps://www.blogger.com/profile/09963238585847993157noreply@blogger.comtag:blogger.com,1999:blog-7523569453469773247.post-8718742942531790022010-07-28T03:59:53.693+02:002010-07-28T03:59:53.693+02:00This is a good approach - however it won't cor...This is a good approach - however it won't correctly handle indestructibility, since that isn't a replacement effect. For example, if you regenerate a creature, sacrifice Dauntless Escort (Sacrifice Dauntless Escort: Creatures you control are indestructible this turn.) and then try and destroy the original creature, you won't get the option to use up the regeneration shield (not that you would ever want to).Incantusnoreply@blogger.comtag:blogger.com,1999:blog-7523569453469773247.post-24785235988482053342010-07-07T18:54:14.544+02:002010-07-07T18:54:14.544+02:00Ps: thanks for your input, putting it in regenerat...Ps: thanks for your input, putting it in regeneration is probably the easiest approach.<br /><br />Another classic example is double furnace of rath: once an effect was applied, It's removed from the list to search, so you get exactly the expected result.<br /><br />Btw, code is at code.google.com/p/laterna-magica/source/browse/trunk/laterna/src/laterna/magica/effect/replacement/ReplacementEngine.java and It's even documented ;)Silly Freakhttps://www.blogger.com/profile/09963238585847993157noreply@blogger.comtag:blogger.com,1999:blog-7523569453469773247.post-19242393707492434262010-07-07T18:42:56.220+02:002010-07-07T18:42:56.220+02:00It's pretty straightforward. When a replaceabl...It's pretty straightforward. When a replaceable event occurs, the game determines which replacement effects could be applied, the you can choose one. In that case, regeneration can't replace the event, so you don't even have the choice. Totem armor can, though. After that, the game looks again: the event is not destruction any more, so no more effects to apply.Silly Freakhttps://www.blogger.com/profile/09963238585847993157noreply@blogger.comtag:blogger.com,1999:blog-7523569453469773247.post-51375797520097924762010-07-07T09:23:24.677+02:002010-07-07T09:23:24.677+02:00I believe "can't be regenerated" wou...I believe "can't be regenerated" woule be handled by regeneration itself.<br />not sure about another aspect: once regeneration fails, may you choose to apply another replacement effect?<br /><br />e.g.: you have drudge skeletons with 2 totem armors on it. when it is being destroyed by Terminate, you choose what replacement effect to apply. if you choose regeneration, then it would fail. I believe after that you still able to choose one of armor replacement effects so drudge skeletons would stay on battlefield (as well as another totem armor)nantuko84https://www.blogger.com/profile/15891352523600843744noreply@blogger.com