SMUnlimited / AMAI

Advanced Melee Artificial Intelligence Mod For Warcraft 3
Other
210 stars 34 forks source link

Implement transfer to neutral victim on surrender and set as default #425

Closed Slayer95 closed 5 days ago

SMUnlimited commented 6 days ago

This sounds good, but doesn't look like it will compile because bj_PLAYER_NEUTRAL_VICTIM_AMAI variable doesn't exist in REFORGED, so needs the additional definition into custom_common.eai.

Slayer95 commented 6 days ago

Alright, @SMUnlimited . It doesn't look like I need to mess with ForwardsCompat.bat, do I?

See: https://lep.duckdns.org/jassbot/doc/GetBJPlayerNeutralVictim for reference.

SMUnlimited commented 5 days ago

With how you done it, no shouldn't need to touch FowardsCompat

jzy-chitong56 commented 5 days ago

how about use sharedRacePlayer when not race player , use this share to NEUTRAL_VICTIM @SMUnlimited

Slayer95 commented 5 days ago

@jzy-chitong56 this change only affects cases in which AMAI has no allies.