Преглед изворни кода

Fix opening spellbook via clicking on hero

Ivan Savenko пре 2 година
родитељ
комит
731f7b0578
1 измењених фајлова са 0 додато и 6 уклоњено
  1. 0 6
      client/battle/BattleInterfaceClasses.cpp

+ 0 - 6
client/battle/BattleInterfaceClasses.cpp

@@ -283,13 +283,7 @@ void BattleHero::heroLeftClicked()
 
 
 	if(owner.getCurrentPlayerInterface()->cb->battleCanCastSpell(hero, spells::Mode::HERO) == ESpellCastProblem::OK) //check conditions
 	if(owner.getCurrentPlayerInterface()->cb->battleCanCastSpell(hero, spells::Mode::HERO) == ESpellCastProblem::OK) //check conditions
 	{
 	{
-		BattleHex hoveredHex = owner.fieldController->getHoveredHex();
-		//do nothing when any hex is hovered - hero's animation overlaps battlefield
-		if ( hoveredHex != BattleHex::INVALID )
-			return;
-
 		CCS->curh->set(Cursor::Map::POINTER);
 		CCS->curh->set(Cursor::Map::POINTER);
-
 		GH.pushIntT<CSpellWindow>(hero, owner.getCurrentPlayerInterface());
 		GH.pushIntT<CSpellWindow>(hero, owner.getCurrentPlayerInterface());
 	}
 	}
 }
 }