mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Check for null player in browbeat. Add shrapnel blast test for omniscience (currently failing)
This commit is contained in:
parent
9219d79b25
commit
327a09c0c1
2 changed files with 27 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class BrowbeatDrawEffect extends OneShotEffect {
|
|||
boolean drawCards = true;
|
||||
for(UUID uuid : game.getPlayerList()){
|
||||
Player player = game.getPlayer(uuid);
|
||||
if(player.chooseUse(Outcome.Detriment, "Have " + spell.getName() + " deal 5 damage to you?", game)){
|
||||
if(player != null && player.chooseUse(Outcome.Detriment, "Have " + spell.getName() + " deal 5 damage to you?", game)){
|
||||
drawCards = false;
|
||||
player.damage(5, source.getSourceId(), game, false, true);
|
||||
game.informPlayers(player.getName() + " has " + spell.getName() + " deal 5 to him or her");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue