-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just extra protection for double expansion check
- Loading branch information
1 parent
788ff2a
commit 18b383f
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18b383f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if GetOwningPlayer(u) != Player(PLAYER_NEUTRAL_PASSIVE) then
if IsPlayerAlly(ai_player, GetOwningPlayer(u)) then //
input unit is town and is ai_player -- then double_expansion_ally_present will true , so Always cancel
set double_expansion_ally_present = true
else
set double_expansion_target = u
set double_expansion_enemy_present = true
endif