1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-15 22:16:37 +02:00

Minor fix.

This commit is contained in:
DjWarmonger 2011-10-08 07:19:29 +00:00
parent 9a1460c2e0
commit 47740cd683

View File

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