forked from mirrors/webxoss-core
🐛 fix handling burst when no effect source
This commit is contained in:
parent
6232881fa2
commit
80d3f08739
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue