72 lines
4.7 KiB
C
72 lines
4.7 KiB
C
#ifndef SECTION_BATTLECRY_H_
|
|
#define SECTION_BATTLECRY_H_
|
|
|
|
#define battlecry_EX1_097\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_097_FLAG, FLAG_ISSET)) {\
|
|
def(card_s, def) def = hsl_card(HSL_target); if(def) { hsl_increase_health(HSL_attacker, default_health(def)); hsl_change_attack(HSL_attacker, default_attack(def)); hsl_destroy(hsl_deck(def), def); } \
|
|
}
|
|
|
|
#define battlecry_EX1_011\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_011_FLAG, FLAG_ISSET)) {\
|
|
def(card_s, def) def = hsl_card(HSL_target); if(def) { hsl_heal_bc(HSL_attacker, def, 2); } \
|
|
}
|
|
|
|
#define battlecry_CS2_088\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_CS2_088_FLAG, FLAG_ISSET)) {\
|
|
def(card_list_s, allcards) allcards = hsl_board_friendly_cards(HSL_deck_player, HSL_attacker->id, HSL_heroes_included); def(card_list_s, cl) foreach(cl, allcards) { cl->card->receive.heal = 99; } hsl_attack_aoe(attacker, allcards, HSL_fake_levelup); hsl_link_target(attacker, allcards); \
|
|
}
|
|
|
|
#define battlecry_LOE_077\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_LOE_077_FLAG, FLAG_ISSET)) {\
|
|
hsl_summon_card(HSL_deck_player, CN_BOAR, cardholder1); hsl_summon_card(HSL_deck_player, CN_VULTURE, cardholder2); \
|
|
}
|
|
|
|
#define battlecry_EX1_614\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_614_FLAG, FLAG_ISSET)) {\
|
|
def(card_s, def) def = hsl_card(HSL_target); if(def) { hsl_swap_health(HSL_attacker, def); } \
|
|
}
|
|
|
|
#define battlecry_EX1_593\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_593_FLAG, FLAG_ISSET)) {\
|
|
def(card_s, def) def = hsl_card(HSL_target); if(def) { hsl_attack_bc(HSL_attacker, def, 2); } \
|
|
}
|
|
|
|
#define battlecry_GVG_105\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_GVG_105_FLAG, FLAG_ISSET)) {\
|
|
def(card_list_s, allcards) allcards = hsl_board_friendly_cards(HSL_deck_player, HSL_attacker->id, HSL_heroes_excluded); def(card_list_s, cl) foreach(cl, allcards) { hsl_unset_exhausted(card(cl)); } \
|
|
}
|
|
|
|
#define battlecry_NEW1_030\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_NEW1_030_FLAG, FLAG_ISSET)) {\
|
|
def(card_list_s, allcards); allcards = hsl_board_all_cards_no_boss(HSL_attacker, HSL_heroes_excluded); def(card_list_s, itm); foreach(itm, allcards) { if(card(itm)->controller == HSL_deck_player->controller) { hsl_destroy(HSL_deck_player, card(itm)); } else { hsl_destroy(HSL_deck_opponent, card(itm)); } } def(card_list_s, hand); hand = hsl_cards_get_hand(HSL_deck_player); hsl_discard_hand(HSL_deck_player, hand); \
|
|
}
|
|
|
|
#define battlecry_CS2_226\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_CS2_226_FLAG, FLAG_ISSET)) {\
|
|
int num_minions = hsl_board_minions_count(HSL_deck_player, HSL_attacker); if(num_minions > 0) { hsl_change_attack(HSL_attacker, num_minions); hsl_increase_health(HSL_attacker, num_minions); hsl_add_single_attachment(HSL_player, HSL_deck_player, HSL_attacker, HSL_attacker); } \
|
|
}
|
|
|
|
#define battlecry_EX1_049\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_049_FLAG, FLAG_ISSET)) {\
|
|
def(card_s, def) def = hsl_card(HSL_target); if(def) { hsl_return_to_hand(def); } \
|
|
}
|
|
|
|
#define battlecry_EX1_306\
|
|
if(HSL_attacker && flag(&(HSL_attacker->state), battlecry_EX1_306_FLAG, FLAG_ISSET)) {\
|
|
hsl_discard_random_hand(HSL_deck_player, 1, holder) \
|
|
}
|
|
|
|
#define __SECTION_BATTLECRY\
|
|
battlecry_EX1_097\
|
|
battlecry_EX1_011\
|
|
battlecry_CS2_088\
|
|
battlecry_LOE_077\
|
|
battlecry_EX1_614\
|
|
battlecry_EX1_593\
|
|
battlecry_GVG_105\
|
|
battlecry_NEW1_030\
|
|
battlecry_CS2_226\
|
|
battlecry_EX1_049\
|
|
battlecry_EX1_306\
|
|
|
|
#endif |