From 8e56d061216bccb7196049524ca3238c37e84456 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 10 May 2014 18:01:41 +0200 Subject: [PATCH] * Geju of the Fiels, Raging Ravine fixed that the given triggered ability was wrongly only given one time instead as often the activated ability was used. --- .../src/main/resources/buttons/type_sorcery.png | Bin 0 -> 1292 bytes .../betrayersofkamigawa/GenjuOfTheFields.java | 13 +++++-------- Mage/src/mage/game/permanent/PermanentImpl.java | 1 + 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 Mage.Client/src/main/resources/buttons/type_sorcery.png diff --git a/Mage.Client/src/main/resources/buttons/type_sorcery.png b/Mage.Client/src/main/resources/buttons/type_sorcery.png new file mode 100644 index 0000000000000000000000000000000000000000..ae815d9eed8ea79962bf1588103853df0e1c0593 GIT binary patch literal 1292 zcmY*X2~bm46b+zMFcwP@Fobo$Q4mdtC;_q==VJNM1|l0o0M z&Kc*7!C=WgR$#y*8XW5%N?kl}y=4*&+J@IZ?LO0T#$=y^lH z?4SN<0J=TFURQ$FZ54wG9#rJ&Q8a{$G zQInFufBPtK$O|dx-)gIr;f*aptyPCvm-N5^29WszwHMF?BIprXEXNCl!kSB^0)ZeUC1tVQ z=Zuhag1ZgKebUlWFI=eL^Z9%CLc4bD%FoY-ASfe)L#4*IwY8O%m66F20|NtMu{bss zDlIM5>2&Go=_1jo^73*TjaFP-oS2x%U@%ZFx+oM1nEw@7ngB~J$m?cgUNHlYn2e8R zMw4eIJ4{o(Gq3?!yaJ}EroXPvOk6`2D#7e`E5lU8+yE@?$O!M{?BBrj1)`50zh7-O zo56D5R3}5JR2mG!_4W0got+gG6>K&;H8mBTB{DLS#bWVzJTjTgWHOH)&5ekNU@($| zLP1gz9o2vR`t`xVL9`DV==J)uXV2#4VFv-o8f32#2(K_oj1S<$`Q!9(HBGm*uf^+a$T7a`2C0Bbm z?U=I`tlB5ujeoiPY7XbSr^)hw#Y?~VYUL$q&DeB4)mpO6YH=Z!oAiE9a0_y5jMw`l zl11(!mt%Xjm~lOG9$S_y?*}d44wzlvY))@+sydEpbNZB;CPY2;oh9^qvIm2)`*?rc zUZ&^6EDpv#!ErMulbdlS?9vF^K#q_YBt<8e-i%0A-Gxd@V!8u<$sEJFetYo4YdP7I zhK&;&+$uK(|8}FENU+>Us{XyEE~u~T=Z341IdHS-)Up=qSeBsLRLk|#O}Ue}ebu|w z4|=O*TGdeBQ@cQ;amR_LZ&$CqeE5)#Hd+in+3o2W)zSXBd+3q&?7Ev*>ZEmP5Qjl< zh@~E7ziB$BnG9hi#5)Ws6^&ngoy&Rdnna}~($hM)ynLKP?5PB1s;wT1t6V5DIJl)?lvT-vT^2r|Y0uZR3ak~E z!|&9NQ8TfS{&3stfx%Lxq9zlI-LOvdx}l)JzR56&K25DI)arsS;5oD=yKkG~KYIF^ z(ee%5(b0~4u4hcp1hG=p`m9l?a=k}!3|;}7UQEA-NjZJw;u+C#HTvd3h4Jjd?2N)3 zN|qo8b(k;$krYY@4-F$R2_y<}Cxx&RO(_I|P|$hke*_*sJC9rRAAv|>qSZTylyDm# UC9qYOmQVs_e>^>|F@{s}4-)HyMgRZ+ literal 0 HcmV?d00001 diff --git a/Mage.Sets/src/mage/sets/betrayersofkamigawa/GenjuOfTheFields.java b/Mage.Sets/src/mage/sets/betrayersofkamigawa/GenjuOfTheFields.java index 80ed488f05..3f8a91ccaa 100644 --- a/Mage.Sets/src/mage/sets/betrayersofkamigawa/GenjuOfTheFields.java +++ b/Mage.Sets/src/mage/sets/betrayersofkamigawa/GenjuOfTheFields.java @@ -28,11 +28,6 @@ package mage.sets.betrayersofkamigawa; import java.util.UUID; - -import mage.constants.CardType; -import mage.constants.Outcome; -import mage.constants.Rarity; -import mage.constants.Zone; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.DealsDamageGainLifeSourceTriggeredAbility; @@ -45,18 +40,19 @@ import mage.abilities.effects.common.ReturnToHandSourceEffect; import mage.abilities.effects.common.continious.BecomesCreatureAttachedEffect; import mage.abilities.effects.common.continious.GainAbilityAttachedEffect; import mage.abilities.keyword.EnchantAbility; -import mage.abilities.keyword.LifelinkAbility; import mage.cards.CardImpl; import mage.constants.AttachmentType; +import mage.constants.CardType; import mage.constants.Duration; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; import mage.filter.common.FilterLandPermanent; import mage.filter.predicate.mageobject.SubtypePredicate; import mage.game.permanent.token.Token; import mage.target.TargetPermanent; import mage.target.common.TargetLandPermanent; - - /** * * @author LevelX2 @@ -88,6 +84,7 @@ public class GenjuOfTheFields extends CardImpl { Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect,new GenericManaCost(2)); effect = new GainAbilityAttachedEffect(new DealsDamageGainLifeSourceTriggeredAbility(), AttachmentType.AURA, Duration.EndOfTurn); effect.setText("with \"Whenever this creature deals damage, its controller gains that much life.\". It's still a land"); + ability2.addEffect(effect); this.addAbility(ability2); // When enchanted Plains is put into a graveyard, you may return Genju of the Fields from your graveyard to your hand. diff --git a/Mage/src/mage/game/permanent/PermanentImpl.java b/Mage/src/mage/game/permanent/PermanentImpl.java index c734c09ac4..f8db9b05c5 100644 --- a/Mage/src/mage/game/permanent/PermanentImpl.java +++ b/Mage/src/mage/game/permanent/PermanentImpl.java @@ -214,6 +214,7 @@ public abstract class PermanentImpl> extends CardImpl public void addAbility(Ability ability, UUID sourceId, Game game) { if (!abilities.containsKey(ability.getId())) { Ability copyAbility = ability.copy(); + copyAbility.newId(); // needed so that sourc can get an ability multiple times (e.g. Raging Ravine) copyAbility.setControllerId(controllerId); copyAbility.setSourceId(objectId); game.getState().addAbility(copyAbility, sourceId, this);