forked from External/mage
* Phantasmal Image - Fixed that under some circumstances copied Dies-Triggered abilities did not work (e.g. copying a Wurmcoil Engine and dying in combat).
This commit is contained in:
parent
8acfbf0ab3
commit
3032fff50e
6 changed files with 38 additions and 9 deletions
|
|
@ -939,6 +939,7 @@ public class ContinuousEffects implements Serializable {
|
|||
*/
|
||||
public void addEffect(ContinuousEffect effect, UUID sourceId, Ability source) {
|
||||
if (!(source instanceof MageSingleton)) { // because MageSingletons may never be removed by removing the temporary effecs they are not added to the temporaryEffects to prevent this
|
||||
effect.setTemporary(true);
|
||||
Set abilities = temporaryEffects.get(effect);
|
||||
if (abilities == null) {
|
||||
abilities = new HashSet<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue