1
0
Fork 0

Merge pull request #28 from Deardrops/WX14

Fix WX14 bugs
This commit is contained in:
webxoss 2017-02-09 22:40:08 +08:00 committed by GitHub
commit d2638cadef
2 changed files with 3 additions and 0 deletions

View file

@ -86292,6 +86292,7 @@ var CardInfo = {
"imgUrl": "http://www.takaratomy.co.jp/products/wixoss/wxwp/images/card/WX11/WX11-013.jpg", "imgUrl": "http://www.takaratomy.co.jp/products/wixoss/wxwp/images/card/WX11/WX11-013.jpg",
"illust": "bomi", "illust": "bomi",
"classes": [ "classes": [
"精羅",
"宇宙" "宇宙"
], ],
"costWhite": 0, "costWhite": 0,
@ -90657,6 +90658,7 @@ var CardInfo = {
triggerCondition: function (event) { triggerCondition: function (event) {
if (!inArr(this,this.player.signis)) return false; if (!inArr(this,this.player.signis)) return false;
if (!this.game.getEffectSource()) return false; if (!this.game.getEffectSource()) return false;
if (!event.card.hasClass('アーム')) return false;
return true; return true;
}, },
actionAsyn: function () { actionAsyn: function () {

View file

@ -261,6 +261,7 @@ Player.prototype.up = function () {
// 返回: // 返回:
// cards: Array,抽到的卡,长度可能少于n(卡组没有足够的卡可以抽),也可能为空数组. // cards: Array,抽到的卡,长度可能少于n(卡组没有足够的卡可以抽),也可能为空数组.
Player.prototype.draw = function (n) { Player.prototype.draw = function (n) {
if (this.addCardToHandBanned) return [];
var cards = this.mainDeck.getTopCards(n); var cards = this.mainDeck.getTopCards(n);
if (!cards.length) return []; if (!cards.length) return [];
if (this.game.phase.isAttackPhase()) { if (this.game.phase.isAttackPhase()) {