Question about replacement effects
 Posted: 07 Feb 2013, 17:24
Posted: 07 Feb 2013, 17:24I've been trying to add Bloodlord of Vaasgoth today and haven't been able to get one last bit right. Basically he pumps another one of those cardFactoryUtil keywords that are unpumpable (at least not so that they're effective), namely Bloodthirst.
So I had to script the various parts of the keyword and had to add some small bits of code as I went along. The basic script is: 
  ](./images/smilies/eusa_wall.gif) 
 
I suppose this is why animate didn't add replacement effects already, but I'm still curious as to why it happens. 
 
(If you're wondering why I compare the replacement string; it seems that when addReplacement is called, a copy of the parsed replacement is created which is then added to the card. I tested and the original ReplacementEffect != card.getReplacementEffects().get(0) (assuming there is just the one replacement). So I decided to campare the strings and remove the first instance of it and I could finally start removing the intended replacement effects - unfortunately that just didn't help!)
Anyway, if I can get this working I should be able to crack the other cards that try pump those keywords.
			So I had to script the various parts of the keyword and had to add some small bits of code as I went along. The basic script is:
- Script | Open
- Animate.java | Open
 
  ](./images/smilies/eusa_wall.gif) 
 I suppose this is why animate didn't add replacement effects already, but I'm still curious as to why it happens.
 
 (If you're wondering why I compare the replacement string; it seems that when addReplacement is called, a copy of the parsed replacement is created which is then added to the card. I tested and the original ReplacementEffect != card.getReplacementEffects().get(0) (assuming there is just the one replacement). So I decided to campare the strings and remove the first instance of it and I could finally start removing the intended replacement effects - unfortunately that just didn't help!)
Anyway, if I can get this working I should be able to crack the other cards that try pump those keywords.