Browse Source

Minor fixes and tweaks.

DjWarmonger 14 years ago
parent
commit
9d313d3d2c
3 changed files with 2 additions and 3 deletions
  1. 1 1
      AI/GeniusAI/ExpertSystem.cpp
  2. 0 1
      lib/CCreatureHandler.cpp
  3. 1 1
      lib/HeroBonus.h

+ 1 - 1
AI/GeniusAI/ExpertSystem.cpp

@@ -92,7 +92,7 @@ void BonusRule::fireRule()
 				if (!it->first.functor(it->second->object->source, it->first.value)) return;
 			break;
 			case BonusCondition::id:
-				if (!it->first.functor(it->second->object->id, it->first.value)) return;
+				if (!it->first.functor(it->second->object->sid, it->first.value)) return;
 			break;
 			case BonusCondition::valType: //ever needed?
 				if (!it->first.functor(it->second->object->valType, it->first.value)) return;

+ 0 - 1
lib/CCreatureHandler.cpp

@@ -1024,7 +1024,6 @@ void CCreatureHandler::loadMindImmunity(Bonus & b, BonusList & bl, std::string &
 		loadToIt (curVal, src, it, 4);
 		if (curVal == 1)
 		{
-			b.val = curVal;
 			b.limiter.reset (new RankRangeLimiter(i));
 			break; //only one limiter here
 		}

+ 1 - 1
lib/HeroBonus.h

@@ -56,7 +56,7 @@ namespace PrimarySkill
 	BONUS_NAME(FIRE_SPELL_DMG_PREMY) \
 	BONUS_NAME(WATER_SPELL_DMG_PREMY) \
 	BONUS_NAME(WATER_WALKING) /*subtype 1 - without penalty, 2 - with penalty*/ \
-	BONUS_NAME(NO_SHOTING_PENALTY) \
+	BONUS_NAME(NO_SHOTING_PENALTY) /* duplicates NO_DISTANCE_PENALTY or FREE_SHOOTHING?*/\
 	BONUS_NAME(NEGATE_ALL_NATURAL_IMMUNITIES) \
 	BONUS_NAME(STACK_HEALTH) \
 	BONUS_NAME(BLOCK_MORALE) \