update
This commit is contained in:
@@ -398,13 +398,17 @@ func _apply(id: int, action: Dictionary) -> void:
|
||||
var cr := game.find_creature(int(action.get("uid", -1)))
|
||||
if cr != null:
|
||||
game.reveal(p, cr)
|
||||
"discard":
|
||||
var hi := int(action.get("hand", -1))
|
||||
if hi >= 0 and hi < p.hand.size():
|
||||
game.discard(p, p.hand[hi])
|
||||
"attack":
|
||||
var cr := game.find_creature(int(action.get("uid", -1)))
|
||||
var t = resolve_ref(action.get("target"))
|
||||
if cr != null and t != null:
|
||||
game.attack(cr, t)
|
||||
"draw":
|
||||
game.draw(p)
|
||||
game.draw(p, int(action.get("index", 0)))
|
||||
"fuse": # zwei Wesen (uid, other) oder zwei Handkarten (hand, other_hand)
|
||||
var a = game.find_creature(int(action.get("uid", -1)))
|
||||
var b = game.find_creature(int(action.get("other", -1)))
|
||||
|
||||
Reference in New Issue
Block a user