mirror of
https://github.com/correl/mage.git
synced 2025-04-10 01:01:05 -09:00
* Renown - Fixed name of active status to be renowned.
This commit is contained in:
parent
d7eed8934e
commit
c1afa57485
6 changed files with 16 additions and 17 deletions
Mage.Sets/src/mage/sets/magicorigins
Mage/src/mage
abilities
common
effects/common
keyword
game/events
|
@ -29,7 +29,7 @@ package mage.sets.magicorigins;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BecomesRenownSourceTriggeredAbility;
|
||||
import mage.abilities.common.BecomesRenownedSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.keyword.RenownAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -66,7 +66,7 @@ public class RelicSeeker extends CardImpl {
|
|||
|
||||
// When Relic Seeker becomes renowned, you may search your library for an Equipment card, reveal it, put it into your hand, then shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new BecomesRenownSourceTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new BecomesRenownedSourceTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ class ValeronWardensTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType().equals(EventType.BECOMES_RENOWN);
|
||||
return event.getType().equals(EventType.BECOMES_RENOWNED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -15,27 +15,27 @@ import mage.game.events.GameEvent;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class BecomesRenownSourceTriggeredAbility extends TriggeredAbilityImpl {
|
||||
public class BecomesRenownedSourceTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private int renownValue;
|
||||
|
||||
public BecomesRenownSourceTriggeredAbility(Effect effect, boolean optional) {
|
||||
public BecomesRenownedSourceTriggeredAbility(Effect effect, boolean optional) {
|
||||
super(Zone.BATTLEFIELD, effect, optional);
|
||||
}
|
||||
|
||||
public BecomesRenownSourceTriggeredAbility(final BecomesRenownSourceTriggeredAbility ability) {
|
||||
public BecomesRenownedSourceTriggeredAbility(final BecomesRenownedSourceTriggeredAbility ability) {
|
||||
super(ability);
|
||||
this.renownValue = ability.renownValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BecomesRenownSourceTriggeredAbility copy() {
|
||||
return new BecomesRenownSourceTriggeredAbility(this);
|
||||
public BecomesRenownedSourceTriggeredAbility copy() {
|
||||
return new BecomesRenownedSourceTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.BECOMES_RENOWN;
|
||||
return event.getType() == GameEvent.EventType.BECOMES_RENOWNED;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -53,6 +53,6 @@ public class BecomesRenownSourceTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "When {this} becomes renown, " + super.getRule();
|
||||
return "When {this} becomes renowned, " + super.getRule();
|
||||
}
|
||||
}
|
|
@ -25,12 +25,11 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
@ -40,10 +39,9 @@ import mage.target.targetpointer.FixedTarget;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class RegenerateAllEffect extends OneShotEffect {
|
||||
|
||||
public class RegenerateAllEffect extends OneShotEffect {
|
||||
|
||||
private FilterPermanent filter;
|
||||
private final FilterPermanent filter;
|
||||
|
||||
public RegenerateAllEffect(FilterPermanent filter) {
|
||||
super(Outcome.DestroyPermanent);
|
||||
|
|
|
@ -91,7 +91,7 @@ class BecomeRenownSourceEffect extends OneShotEffect {
|
|||
}
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance(renownValue), true).apply(game, source);
|
||||
permanent.setRenown(true);
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.BECOMES_RENOWN, source.getSourceId(), source.getSourceId(), source.getControllerId(), renownValue));
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.BECOMES_RENOWNED, source.getSourceId(), source.getSourceId(), source.getControllerId(), renownValue));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -51,6 +51,7 @@ public class GameEvent implements Serializable {
|
|||
public enum EventType {
|
||||
|
||||
//Game events
|
||||
//Game events
|
||||
BEGINNING,
|
||||
PREVENT_DAMAGE, PREVENTED_DAMAGE,
|
||||
//Turn-based events
|
||||
|
@ -173,7 +174,7 @@ public class GameEvent implements Serializable {
|
|||
UNFLIP, UNFLIPPED,
|
||||
TRANSFORM, TRANSFORMED,
|
||||
BECOMES_MONSTROUS,
|
||||
BECOMES_RENOWN,
|
||||
BECOMES_RENOWNED,
|
||||
PHASE_OUT, PHASED_OUT,
|
||||
PHASE_IN, PHASED_IN,
|
||||
TURNFACEUP, TURNEDFACEUP,
|
||||
|
|
Loading…
Add table
Reference in a new issue