Files
hsmod_original/hm_gameserver/script/mechanics/cards/NEW1_009.card
T
WatermelonModders fc5cb0c32c Initial commit
2022-05-31 12:35:46 -04:00

38 lines
970 B
Plaintext

# Healing Totem
{
".section endturn" : {
"code" : "
def(card_list_s, all);
all = hsl_board_friendly_cards_wattacker($heroes_excluded);
def(card_s, found);
def(card_list_s, c);
foreach(c, all) {
if(hsl_cmp_cardname(c, \"NEW1_009\")) {
found = c->card;
break;
}
}
if(found != NULL) {
def(card_list_s, filter);
filter = hsl_board_friendly_cards(found, $heroes_excluded);
foreach(c, filter) {
/* exclude self */
if(c->card == found) continue;
hsl_receive_heal(c->card, 1);
entity_attack(p, found, c->card);
}
found->target.card = all;
flag(&found->state, MECHANICS_TURN_TRIGGER, FLAG_SET);
}
"
}
}