Menu

Sliver Overlord and other controlling cards

2008-03-13
2013-04-25
  • David Taylor

    David Taylor - 2008-03-13

    I'm having some issues with Sliver Overlord's ability to gain control of slivers. My xml reads as follows:

    <activated-ability playable='instant' name='' zone='play'>
        <cost>
            <pay-mana colorless='3' />
            <action ref='target-permanent'>
                <test>
                    <has-property property='sliver'/>
                </test>
            </action>
        </cost>
        <effects>
            <add-modifier>
                <controller-modifier player='you' />
            </add-modifier>
        </effects>
    </activated-ability>

    When I target a sliver it moves over to my control but it gains all of it's modifiers again, without having them cleared first. So muscle slivers give +2/+2. And when a new sliver is put in play it gives it's modifier twice.

    Does anyone know how to fix that?

    Thanks,
    Crazion

     
    • Fabrice Daugan

      Fabrice Daugan - 2008-03-15

      Can give me the complete xml, I'll try to reproduce this error and fix it.
      Also if you could send me the deck, it would be easier to reproduce the bug.

      Thanks

       
    • David Taylor

      David Taylor - 2008-03-26

      Sorry for seeming so helpless but I can't seem to find any way to send you the files so I'm just going to paste the text here.

      #
      #Deck SliverTest.txt
      #
      Aesthir Glider;4
      Alpha Myr;4
      Aluren;4
      Ashnod's Altar;4
      Barbed Sliver;4
      Bayou;4
      Birds of Paradise;4
      Gemhide Sliver;4
      Metallic Sliver;4
      Recycle;4
      Savannah;4
      Sliver Overlord;4
      Taiga;4
      Thran Quarry;4
      Tropical Island;4

      #
      #Sliver Overlord
      #
      <?xml version='1.0'?>
      <card xmlns='http://sourceforge.net/projects/firemox'
          xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
          xsi:schemaLocation='http://sourceforge.net/projects/firemox ../../validator.xsd'
          name="Sliver Overlord">
      <rules-author-comment>Crazion</rules-author-comment>

          <!--
                  wubrg
              legendary creature - sliver mutant
              7/7
              3: search your library for a sliver card, reveal that card, and put it into your hand. then shuffle your library.
              3: gain control of target sliver.
          -->
          <init>
              <registers>
                  <register index='white' value='1'/>
                  <register index='blue' value='1'/>
                  <register index='black' value='1'/>
                  <register index='red' value='1'/>
                  <register index='green' value='1'/>
                  <register index='power' value='7'/>
                  <register index='toughness' value='7'/>
              </registers>
              <colors>white blue black red green </colors>
              <idcards>creature </idcards>
              <properties>legend sliver mutant </properties>
          </init>
          <abilities>
              <ability ref='cast-spell'/>
              <activated-ability playable='instant' name='3: search your library for a sliver card, reveal that card, and put it into your hand. then shuffle your library.' zone='play'>
                  <cost>
                      <pay-mana colorless='3' />
                  </cost>
                  <effects>
                      <action ref='search-lib'>
                          <test>
                              <has-property property='sliver' />
                          </test>
                      </action>
                      <action ref='reveal' />
                      <action ref='return-to-hand' />
                      <shuffle zone='library' />
                  </effects>
              </activated-ability>
              <activated-ability playable='instant' name='3: Gain control of target sliver.' zone='play'>
                  <cost>
                      <pay-mana colorless='3' />
                      <action ref='target-permanent'>
                          <test>
                              <has-property property='sliver'/>
                          </test>
                      </action>
                  </cost>
                  <effects>
                      <add-modifier>
                          <controller-modifier player='you' />
                      </add-modifier>
                  </effects>
              </activated-ability>
          </abilities>
      </card>

      #
      #Recycle from the other thread... I still can't get it working; the triggered ability doesn't even show up in the log
      #
      <?xml version='1.0'?>
      <card xmlns='http://sourceforge.net/projects/firemox'
          xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
          xsi:schemaLocation='http://sourceforge.net/projects/firemox ../../validator.xsd'
          name="Recycle">
      <rules-author-comment>Crazion</rules-author-comment>

      <!--
              4gg
          enchantment
          skip your draw step.
          whenever you play a card, draw a card.
          your maximum hand size is two.
      -->

          <init>
              <registers>
                  <register index='green' value='2'/>
                  <register index='colorless' value='4'/>
              </registers>
              <colors>green </colors>
              <idcards>global-enchantment </idcards>
          </init>
         
          <modifiers>
              <!-- FIX MAXIMUM HAND MODIFIER
              <register-modifier index="maxi-cards-in-hand" value="2" operation="set" linked="true" />
              -->
              <static-modifier filter-zone='anywhere'>
                  <modifiers>
                      <ability-modifier operation="add">
                          <triggered-ability zone='anywhere'>
                              <moved-card>
                                  <source-test>
                                      <and>
                                          <is-this />
                                          <in-zone zone='hand' />
                                      </and>
                                  </source-test>
                              </moved-card>
                              <effects>
                                  <target type='you' />
                                  <action ref='draw-a-card'/>
                              </effects>
                          </triggered-ability>
                      </ability-modifier>
                  </modifiers>
              </static-modifier>
          </modifiers>
         
          <abilities>
              <ability ref='cast-spell'/>
              <triggered-ability zone="play" resolution="hidden">
                  <before-phase phase="draw">
                      <test>
                          <controller player="currentplayer" card="this" />
                      </test>
                  </before-phase>
                  <effects>
                      <target type="currentplayer" />
                      <skip-phase phase="draw" />
                  </effects>
              </triggered-ability>
          </abilities>
      </card>

      #
      # Aluren: This uses the code you gave me in the other thread, it works but not always. I'm still testing things out
      #
      <?xml version='1.0'?>
      <card xmlns='http://sourceforge.net/projects/firemox'
          xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
          xsi:schemaLocation='http://sourceforge.net/projects/firemox ../../validator.xsd'
          name='Aluren'>
          <rules-author-comment>Crazion</rules-author-comment>

          <!--
              2gg
              enchantment
              any player may play creature cards with converted mana cost 3 or less
              without paying their mana cost and as though they had flash.
          -->

          <init>
              <registers>
                  <register index='green' value='2' />
                  <register index='colorless' value='2' />
              </registers>
              <colors>green</colors>
              <idcards>global-enchantment</idcards>
          </init>
          <abilities>
              <ability ref='cast-spell' />
          </abilities>
          <modifiers>
              <static-modifier filter-zone="anywhere">
                  <modifiers>
                      <ability-modifier operation="add">
                          <abilities>
                              <activated-ability playable="instant" zone="hand">
                                  <cost />
                                  <effects>
                                      <action ref="put-in-play" />
                                  </effects>
                              </activated-ability>
                          </abilities>
                      </ability-modifier>
                  </modifiers>
                  <while>
                      <and>
                          <has-idcard idcard="creature" />
                          <inf-equal right="3">
                              <left register="tested" index="manacost" />
                          </inf-equal>
                      </and>
                  </while>
              </static-modifier>
          </modifiers>
      </card>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.