mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
add warning for effect source to selectEner
This commit is contained in:
parent
ff57f7b810
commit
23b6fbca00
1 changed files with 4 additions and 1 deletions
|
@ -392,7 +392,10 @@ Dialog.prototype.selectSomeCards = function (title,cards,arg,callback) {
|
|||
};
|
||||
|
||||
Dialog.prototype.selectEner = function (title,cards,colors,cost,callback,onCancel) {
|
||||
this.selectCardAdvanced(title,cards,null,false,false,onSelectChange,callback,onCancel);
|
||||
var texts = cards.map(function (card) {
|
||||
return card.cid === cost.source ? 'WARN' : '';
|
||||
},this);
|
||||
this.selectCardAdvanced(title,cards,texts,false,false,onSelectChange,callback,onCancel);
|
||||
|
||||
function onSelectChange (selectedIndexes,disable) {
|
||||
var need = {};
|
||||
|
|
Loading…
Reference in a new issue