mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[STX] Implemented Show of Confidence
This commit is contained in:
parent
63ae80c711
commit
79b7d49e83
3 changed files with 94 additions and 8 deletions
|
|
@ -10,14 +10,9 @@ import mage.game.events.GameEvent.EventType;
|
|||
import mage.game.stack.Spell;
|
||||
import mage.watchers.Watcher;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class SpellsCastWatcher extends Watcher {
|
||||
|
|
@ -73,11 +68,11 @@ public class SpellsCastWatcher extends Watcher {
|
|||
}
|
||||
|
||||
public List<Spell> getSpellsCastThisTurn(UUID playerId) {
|
||||
return spellsCast.get(playerId);
|
||||
return spellsCast.computeIfAbsent(playerId, x -> new ArrayList<>());
|
||||
}
|
||||
|
||||
public List<Spell> getSpellsCastFromGraveyardThisTurn(UUID playerId) {
|
||||
return spellsCastFromGraveyard.get(playerId);
|
||||
return spellsCastFromGraveyard.computeIfAbsent(playerId, x -> new ArrayList<>());
|
||||
}
|
||||
|
||||
public int getNumberOfNonCreatureSpells() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue