Skip to content

Commit

Permalink
Merge pull request Ziktofel#197 from EnvyDragon/guardian-shell-changes
Browse files Browse the repository at this point in the history
SC2: Tagging Guardian Shell as SoA passive
  • Loading branch information
Ziktofel authored May 16, 2024
2 parents a49ab24 + bacd3c2 commit 98810fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worlds/sc2/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,9 @@ def caclulate_soa_options(ctx: SC2Context) -> int:
soa_autocasts_presence_value = 2
elif ctx.spear_of_adun_autonomously_cast_ability_presence == SpearOfAdunAutonomouslyCastAbilityPresence.option_everywhere:
soa_autocasts_presence_value = 3
# Guardian Shell breaks without SoA on version 4+, but can be generated without SoA on version 3
if ctx.slow_data_version < 4 and soa_autocasts_presence_value < 2:
soa_autocasts_presence_value = 2
options |= soa_autocasts_presence_value << 3

# Bit 5
Expand Down
1 change: 1 addition & 0 deletions worlds/sc2/Items.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ def get_basic_units(world: 'SC2World', race: SC2Race) -> typing.Set[str]:
spear_of_adun_castable_passives = {
ItemNames.RECONSTRUCTION_BEAM,
ItemNames.OVERWATCH,
ItemNames.GUARDIAN_SHELL,
}

nova_equipment = {
Expand Down

0 comments on commit 98810fd

Please sign in to comment.