浏览代码

Minor fix.

DjWarmonger 14 年之前
父节点
当前提交
47740cd683
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      client/CBattleInterface.cpp

+ 5 - 3
client/CBattleInterface.cpp

@@ -2044,8 +2044,10 @@ void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &sEvent)
 							if (curInt->cb->battleCanCastThisSpell(spell, THex(myNumber)) == SpellCasting::OK)
 							{
 								if (spell->positiveness > -1 && ourStack || spell->positiveness < 1 && !ourStack)
-								CCS->curh->changeGraphic(3, 0);
-								stackCastsSpell = true;
+								{
+									CCS->curh->changeGraphic(3, 0);
+									stackCastsSpell = true;
+								}
 							}
 						}
 						else if (ourStack) //must have only random positive spell (genie)
@@ -2066,7 +2068,7 @@ void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &sEvent)
 					{
 						if (shere->alive())
 						{
-							if (!stackCastsSpell) //use other abilities of display info
+							if (!stackCastsSpell) //use other abilities or display info
 							{
 								if(sactive->hasBonusOfType(Bonus::HEALER))
 								{