1
0
Fork 0

🐛 fix handling burst when no effect source

This commit is contained in:
WEBXOSS 2017-08-26 13:28:12 +08:00
parent 6232881fa2
commit 80d3f08739

View file

@ -1117,7 +1117,10 @@ Player.prototype.crashAsyn = function (n,arg) {
lancer: lancer lancer: lancer
}; };
this.onCrash.trigger(event); this.onCrash.trigger(event);
if (card.onBurst.effects.length && (tag !== 'dontTriggerBurst') && !source.disableBurst) { var shouldBurst = card.onBurst.effects.length &&
(tag !== 'dontTriggerBurst') &&
(!source || !source.disableBurst)
if (shouldBurst) {
// 迸发 // 迸发
card.onBurst.trigger({crossLifeCloth: crossLifeCloth}); // 注意<DYNAMITE> card.onBurst.trigger({crossLifeCloth: crossLifeCloth}); // 注意<DYNAMITE>
} else { } else {