mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
* 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:
parent
666308bd67
commit
ea9fe5df55
2 changed files with 12 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue