hasKeyword

fun Card.hasKeyword(keyword: String): Boolean

Checks if this card has the specified keyword ability.

Return

true if the card has the keyword

Example:

if (card.hasKeyword("flying")) {
println("Card has flying!")
}

Parameters

keyword

The keyword to check (e.g., "flying", "haste")