Fixes to sunwell and minor improvements

This commit is contained in:
omer
2024-04-15 15:50:41 +02:00
parent 87a4da5882
commit 79ca60d136
46 changed files with 1507 additions and 716 deletions
+5 -5
View File
@@ -202,7 +202,7 @@ name="Terrorblade" card=EX1_614 tags={183:3,203:5,202:4,48:6,45:1,47:5,201:3,251
name="Guardian Angel" card=EX1_371 tags={183:2,203:2,202:5,48:2,199:5,201:3,251:1,321:1,330:0,331:0,} custom=1
# Polymorph
[CS2_022] attachment=CS2_022e
name="Polymorph" card=CS2_022 tags={183:2,202:5,201:3,199:4,203:2,48:4,251:1,268:2,321:1,330:0,331:0,} custom=1 attachment=CS2_022e
name="Polymorph E" card=CS2_022e tags={12:1,49:6,202:6} flags=(CARD_ATTACHMENT)
# Hex
@@ -379,7 +379,7 @@ name="Sprint" card=CS2_077 tags={183:2,202:5,201:3,199:7,203:1,48:7,251:1,268:2,
[DS1_233]
# Frost Nova
name="Shiva's Guard" card=CS2_026 tags={183:2,202:5,201:3,199:4,203:1,48:3,251:1,47:1,268:2,321:1,330:0,331:0,208:1,} custom=1
name="Frost Nova" card=CS2_026 tags={183:2,202:5,201:3,199:4,203:1,48:2,251:1,47:1,268:2,321:1,330:0,331:0,208:1,} custom=1
# Fan of Knives
[EX1_129]
@@ -394,7 +394,7 @@ name="Shiva's Guard" card=CS2_026 tags={183:2,202:5,201:3,199:4,203:1,48:3,251:1
[CS2_003]
# Flamestrike
[CS2_032]
name="Flamestrike" card=CS2_032 tags={183:2,202:5,201:3,199:4,203:1,48:7,251:1,47:4,268:2,321:1,330:0,331:0,} custom=1
# Whirlwind
name="Counter Helix" card=EX1_400 tags={183:2,202:5,201:3,199:10,203:1,48:0,251:1,47:1,321:1,330:0,331:0,} custom=1
@@ -403,7 +403,7 @@ name="Counter Helix" card=EX1_400 tags={183:2,202:5,201:3,199:10,203:1,48:0,251:
[CS2_093]
# Holy Nova
name="Mekansm" card=CS1_112 tags={183:2,202:5,201:3,199:6,203:1,48:4,251:5,321:1,330:0,331:0,} custom=1
name="Holy Nova" card=CS1_112 tags={183:2,202:5,201:3,199:6,203:1,48:5,251:5,47:2,321:1,330:0,331:0,} custom=1
# Hellfire
[CS2_062]
@@ -487,7 +487,7 @@ name="Legion Commander" card=CS2_226 tags={183:2,202:4,201:1,203:4,48:5,47:4,45:
name="Frostwolf Banner" card=CS2_226e tags={183:2,202:6,330:1,331:1,} custom=1 flags=(CARD_ATTACHMENT)
# Succubus
name="Queen of Pain" card=EX1_306 tags={183:2,202:4,201:3,199:9,200:15,203:2,48:3,47:4,45:3,251:1,268:2,321:1,218:1,} custom=1
name="Queen of Pain" card=EX1_306 tags={183:2,202:4,201:3,199:9,200:15,203:2,48:3,47:3,45:5,251:1,268:2,321:1,218:1,} custom=1
# Sap
name="Sap" card=EX1_581 tags={183:2,203:2,202:5,48:2,201:3,199:7,268:2,321:1,330:0,331:0,} custom=1
+4 -2
View File
@@ -29,7 +29,6 @@ spell_CS1h_001_FLAG, 1000
destroyed_NEW1_036_FLAG, 1000
buff_NEW1_036_FLAG, 1000
spell_aoe_GVG_010_FLAG, 1000
spell_aoe_CS1_112_FLAG, 1000
spell_CS2_072_FLAG, 1000
buff_CS2_077_FLAG, 1000
buff_CS2_023_FLAG, 1000
@@ -125,7 +124,6 @@ weapon_destroyed_LOE_118_FLAG, 1000
weapon_attack_LOE_118_FLAG, 1000
onboard_LOE_118_FLAG, 1000
buff_LOEA06_03_FLAG, 1000
spell_aoe_CS2_026_FLAG, 1000
attack_EX1_306_FLAG, 1000
battlecry_EX1_306_FLAG, 1000
destroyed_CS2_222_FLAG, 1000
@@ -136,3 +134,7 @@ destroyed_CS2_231_FLAG, 1000
attack_CS2_231_FLAG, 1000
idle_CS2_231_FLAG, 1000
onboard_CS2_231_FLAG, 1000
buff_CS2_022_FLAG, 1000
spell_aoe_CS1_112_FLAG, 1000
spell_aoe_CS2_026_FLAG, 1000
spell_aoe_CS2_032_FLAG, 1000
@@ -2,7 +2,7 @@
{
".section buff" : {
"code": "
hsl_transform($attacker, $defender, \"CS2_tk1\");
hsl_transform($deck_player, $attacker, $defender, \"CS2_tk1\");
",
"target": "$enemy_minions"
@@ -91,6 +91,11 @@
int count = hsl_count_attachments(hsl_deck(HSL_defender), NULL, HSL_defender, CN_DESOLATOR_BONUS); if(count == 0) { hsl_add_single_attachment(HSL_player, hsl_deck(HSL_defender), HSL_attacker, HSL_defender); } \
}
#define buff_CS2_022\
if(HSL_attacker && flag(&(HSL_attacker->state), buff_CS2_022_FLAG, FLAG_ISSET)) {\
hsl_transform(HSL_deck_player, HSL_attacker, HSL_defender, "CS2_tk1"); \
}
#define __SECTION_BUFF\
buff_EX1_371\
buff_CS2_011\
@@ -110,5 +115,6 @@
buff_OG_090\
buff_EX1_581\
buff_LOEA06_03\
buff_CS2_022\
#endif
@@ -26,29 +26,35 @@
hsl_refresh_mana(HSL_deck_player, 2); 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_receive_heal(card(cl), 2); } hsl_attack_aoe(HSL_attacker, allcards, HSL_fake_levelup); hsl_link_target(HSL_attacker, allcards); \
}
#define spell_aoe_CS1_112\
if(HSL_attacker && flag(&(HSL_attacker->state), spell_aoe_CS1_112_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) { cl->card->receive.heal = 2; } hsl_attack_aoe(HSL_attacker, allcards, HSL_fake_levelup); hsl_link_target(HSL_attacker, allcards); \
}
#define spell_aoe_EX1_400\
if(HSL_attacker && flag(&(HSL_attacker->state), spell_aoe_EX1_400_FLAG, FLAG_ISSET)) {\
def(card_list_s, e) e = hsl_board_enemy_cards(HSL_attacker, HSL_heroes_excluded, HSL_magic_immunity_included); def(card_list_s, cl) foreach(cl, e) { hsl_receive_damage(card(cl), 1); } hsl_attack_aoe(HSL_attacker, e, HSL_fake_levelup); hsl_link_target(HSL_attacker, e); \
}
#define spell_aoe_CS1_112\
if(HSL_attacker && flag(&(HSL_attacker->state), spell_aoe_CS1_112_FLAG, FLAG_ISSET)) {\
def(card_list_s, allcards) allcards = hsl_board_all_cards(HSL_attacker, HSL_heroes_included); def(card_list_s, cl) foreach(cl, allcards) { if(is_controller_player(card(cl))) { hsl_receive_heal(card(cl), 2); } else { hsl_receive_damage(card(cl), 2); } } hsl_attack_aoe(HSL_attacker, allcards, HSL_fake_levelup); hsl_link_target(HSL_attacker, allcards); \
}
#define spell_aoe_CS2_026\
if(HSL_attacker && flag(&(HSL_attacker->state), spell_aoe_CS2_026_FLAG, FLAG_ISSET)) {\
def(card_list_s, e) e = hsl_board_enemy_cards(HSL_attacker, HSL_heroes_excluded, HSL_magic_immunity_excluded); int count = hsl_count_cards(e); if(count > 0) { def(card_s, card) card = hsl_random_card(e); def(card_list_s, cl) foreach(cl, e) { hsl_receive_damage(card(cl), 1); } if(card) { hsl_freeze(HSL_attacker, card); } } hsl_attack_aoe(HSL_attacker, e, HSL_fake_levelup); hsl_link_target(HSL_attacker, e); \
}
#define spell_aoe_CS2_032\
if(HSL_attacker && flag(&(HSL_attacker->state), spell_aoe_CS2_032_FLAG, FLAG_ISSET)) {\
def(card_list_s, e) e = hsl_board_enemy_cards(HSL_attacker, HSL_heroes_excluded, HSL_magic_immunity_excluded); def(card_list_s, cl) foreach(cl, e) { hsl_receive_damage(card(cl), 4); } hsl_attack_aoe(HSL_attacker, e, HSL_fake_levelup); hsl_link_target(HSL_attacker, e); \
}
#define __SECTION_SPELL_AOE\
spell_aoe_EX1_312\
spell_aoe_EX1_251\
spell_aoe_EX1_259\
spell_aoe_EX1_303\
spell_aoe_GVG_010\
spell_aoe_CS1_112\
spell_aoe_EX1_400\
spell_aoe_CS1_112\
spell_aoe_CS2_026\
spell_aoe_CS2_032\
#endif