mirror of
https://github.com/exane/not-gwent-online
synced 2025-11-05 00:58:26 +00:00
add multi ability support
This commit is contained in:
@@ -43,6 +43,7 @@ module.exports = {
|
||||
if(!field.isOnField(card)){
|
||||
field.get().forEach(function(_card){
|
||||
if(_card.getID() == id) return;
|
||||
if(_card.hasAbility("hero")) return;
|
||||
if(_card.getType() != card.getType()) return;
|
||||
_card.setBoost(id, 0);
|
||||
})
|
||||
@@ -52,6 +53,7 @@ module.exports = {
|
||||
|
||||
field.get().forEach(function(_card){
|
||||
if(_card.getID() == id) return;
|
||||
if(_card.hasAbility("hero")) return;
|
||||
if(_card.getType() != card.getType()) return;
|
||||
_card.setBoost(id, 1);
|
||||
})
|
||||
|
||||
@@ -551,7 +551,7 @@ module.exports = {
|
||||
"kayran": {
|
||||
name: "Kayran",
|
||||
power: 8,
|
||||
ability: ["hero", "morale_boost"],
|
||||
ability: ["hero", "morale_boost", "agile"],
|
||||
img: "kayran",
|
||||
faction: "monster",
|
||||
type: 1
|
||||
|
||||
Reference in New Issue
Block a user