mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
align DISCOVERED event to naming convention
no need for custom event class
This commit is contained in:
parent
af05e6f940
commit
ded7eeeaa8
4 changed files with 4 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ import mage.filter.FilterCard;
|
|||
import mage.filter.common.FilterNonlandCard;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DiscoverEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ public class DiscoverEffect extends OneShotEffect {
|
|||
}
|
||||
cards.retainZone(Zone.EXILED, game);
|
||||
player.putCardsOnBottomOfLibrary(cards, game, source, false);
|
||||
game.fireEvent(new DiscoverEvent(source, player.getId(), amount));
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.DISCOVERED, null, source, player.getId(), amount));
|
||||
return card;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
package mage.game.events;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class DiscoverEvent extends GameEvent {
|
||||
public DiscoverEvent(Ability source, UUID playerId, int amount) {
|
||||
super(EventType.DISCOVER, null, source, playerId, amount, false);
|
||||
}
|
||||
}
|
||||
|
|
@ -539,7 +539,7 @@ public class GameEvent implements Serializable {
|
|||
amount discover value
|
||||
flag not used for this event
|
||||
*/
|
||||
DISCOVER,
|
||||
DISCOVERED,
|
||||
//custom events
|
||||
CUSTOM_EVENT
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue