Fixed Kaya's Wrath only killing controlled creatures

This commit is contained in:
Evan Kranzler 2019-01-12 16:37:33 -05:00
parent 8629977f14
commit 7c655abb58

View file

@ -59,8 +59,8 @@ class KayasWrathEffect extends OneShotEffect {
StaticFilters.FILTER_PERMANENT_CREATURE,
source.getControllerId(), source.getSourceId(), game
)) {
boolean isMine = permanent != null && permanent.getControllerId().equals(source.getControllerId());
if (isMine && permanent.destroy(source.getSourceId(), game, false)) {
boolean isMine = permanent != null && permanent.isControlledBy(source.getControllerId());
if (permanent.destroy(source.getSourceId(), game, false) && isMine) {
counter++;
}
}