Skip to content
Permalink
Browse files

bombs away!

allow units armed _ONLY_ with grenades to use them
  • Loading branch information...
Warboy1982 committed Aug 8, 2019
1 parent e08f6b3 commit 81266be8ac94f8c71e11aa9c1dfd2786c61054b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Battlescape/AIModule.cpp
@@ -1336,7 +1336,7 @@ void AIModule::evaluateAIMode()
}

// no weapons, not psychic? don't pick combat or ambush
if (!_melee && !_rifle && !_blaster && _unit->getBaseStats()->psiSkill == 0)
if (!_melee && !_rifle && !_blaster && !_unit->getGrenadeFromBelt() && _unit->getBaseStats()->psiSkill == 0)
{
combatOdds = 0;
ambushOdds = 0;

0 comments on commit 81266be

Please sign in to comment.
You can’t perform that action at this time.