浏览代码

Display AGE effect with any value (not only -50%).

AlexVinS 10 年之前
父节点
当前提交
7cf9bd36b7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/battle/CBattleInterface.cpp

+ 2 - 1
client/battle/CBattleInterface.cpp

@@ -1385,8 +1385,9 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
 					boost::format text(getPluralText(551));
 					//The %s shrivel with age, and lose %d hit points."
 					TBonusListPtr bl = attackedStack->getBonuses(Selector::type(Bonus::STACK_HEALTH));
+					const int fullHP = bl->totalValue(); 
 					bl->remove_if(Selector::source(Bonus::SPELL_EFFECT, SpellID::AGE));
-					text % (bl->totalValue()/2);						
+					text % (fullHP - bl->totalValue());
 					logLines.push_back(text.str());
 				}
 				break;