UnitUtil::CanAttack compares WeaponType to UnitType
squeek502 opened this issue · 0 comments
squeek502 commented
https://github.com/davechurchill/ualbertabot/blob/master/UAlbertaBot/Source/UnitUtil.cpp#L81
GetWeapon(attacker, target) != BWAPI::UnitTypes::None
should be:
GetWeapon(attacker, target) != BWAPI::WeaponTypes::None