[KHM] fixed a null pointer exception with Valkmira, Protector's Shield

This commit is contained in:
Evan Kranzler 2021-02-04 16:48:51 -05:00
parent 0de71e0348
commit 22b07608b0

View file

@ -169,7 +169,7 @@ class ValkmiraProtectorsShieldPreventionEffect extends PreventionEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (!game.getOpponents(event.getSourceId()).contains(source.getControllerId())) {
if (!game.getOpponents(game.getControllerId(event.getSourceId())).contains(source.getControllerId())) {
return false;
}
switch (event.getType()) {