mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Fixed that evolve did not look for last known information of permanant that triggered evolve if permanent meanwhile left the battlefield.
This commit is contained in:
parent
3819db77ba
commit
9f8722c359
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ class EvolveEffect extends OneShotEffect<EvolveEffect> {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
UUID triggeringCreatureId = (UUID) getValue("triggeringCreature");
|
||||
Permanent triggeringCreature = game.getPermanent(triggeringCreatureId);
|
||||
if (triggeringCreature == null) {
|
||||
triggeringCreature = (Permanent) game.getLastKnownInformation(triggeringCreatureId, Zone.BATTLEFIELD);
|
||||
}
|
||||
if (triggeringCreature != null) {
|
||||
Permanent sourceCreature = game.getPermanent(source.getSourceId());
|
||||
if (sourceCreature != null && EvolveAbility.isPowerOrThoughnessGreater(sourceCreature, triggeringCreature)) {
|
||||
|
|
Loading…
Reference in a new issue