mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fix for UndeadAlchemist
This commit is contained in:
parent
2c814f8321
commit
894c575d34
1 changed files with 2 additions and 1 deletions
|
@ -150,8 +150,9 @@ class UndeadAlchemistEffect extends ReplacementEffectImpl {
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
DamagePlayerEvent damageEvent = (DamagePlayerEvent) event;
|
DamagePlayerEvent damageEvent = (DamagePlayerEvent) event;
|
||||||
if (damageEvent.isCombatDamage()) {
|
if (damageEvent.isCombatDamage()) {
|
||||||
|
UUID controllerId = source.getControllerId();
|
||||||
Permanent permanent = game.getPermanent(event.getSourceId());
|
Permanent permanent = game.getPermanent(event.getSourceId());
|
||||||
if (permanent != null && permanent.hasSubtype("Zombie", game)) {
|
if (permanent != null && permanent.hasSubtype("Zombie", game) && permanent.getControllerId() == controllerId) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue