mirror of
https://github.com/exane/not-gwent-online
synced 2025-09-19 06:39:10 +00:00
stuff
This commit is contained in:
@@ -138,11 +138,13 @@ var Field = (function(){
|
||||
this._hornCard = card;
|
||||
}
|
||||
|
||||
r.getHighestCards = function() {
|
||||
r.getHighestCards = function(noHeroes) {
|
||||
noHeroes = noHeroes || false;
|
||||
var res = [];
|
||||
var highest = 0;
|
||||
|
||||
this.get().forEach(function(card) {
|
||||
if(noHeroes && card.getAbility("hero")) return;
|
||||
highest = card.getPower() > highest ? card.getPower() : highest;
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user