* Signal Pest - Fixed that Signal Pests restriction effect did not work always if more than one Signal Pest was in the game.

This commit is contained in:
LevelX2 2014-06-22 19:51:13 +02:00
parent 666308bd67
commit ea9fe5df55
2 changed files with 12 additions and 6 deletions

View file

@ -734,8 +734,8 @@ public abstract class AbilityImpl implements Ability {
MageObject object;
UUID parameterSourceId;
// for singleton abilities like Flying we can't rely on abilities' source
// so will use the one that came as a parameter if it is not null
// for singleton abilities like Flying we can't rely on abilities' source because it's only once in continuous effects
// so will use the sourceId of the object itself that came as a parameter if it is not null
if (this instanceof MageSingleton && source != null) {
object = source;
parameterSourceId = source.getId();