mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed Kaya's Wrath only killing controlled creatures
This commit is contained in:
parent
8629977f14
commit
7c655abb58
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ class KayasWrathEffect extends OneShotEffect {
|
||||||
StaticFilters.FILTER_PERMANENT_CREATURE,
|
StaticFilters.FILTER_PERMANENT_CREATURE,
|
||||||
source.getControllerId(), source.getSourceId(), game
|
source.getControllerId(), source.getSourceId(), game
|
||||||
)) {
|
)) {
|
||||||
boolean isMine = permanent != null && permanent.getControllerId().equals(source.getControllerId());
|
boolean isMine = permanent != null && permanent.isControlledBy(source.getControllerId());
|
||||||
if (isMine && permanent.destroy(source.getSourceId(), game, false)) {
|
if (permanent.destroy(source.getSourceId(), game, false) && isMine) {
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue