1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00
This commit is contained in:
mateuszb
2010-07-28 10:09:15 +00:00
parent f4b9af000f
commit f004cbff3f
3 changed files with 29 additions and 29 deletions

View File

@ -2812,7 +2812,7 @@ void CBattleInterface::castThisSpell(int spellID)
spellDestSelectMode = true;
//choosing possible tragets
const CGHeroInstance * castingHero = (attackingHeroInstance->tempOwner == curInt->playerID) ? attackingHeroInstance : attackingHeroInstance;
const CGHeroInstance * castingHero = (attackingHeroInstance->tempOwner == curInt->playerID) ? attackingHeroInstance : defendingHeroInstance;
const CSpell & spell = CGI->spellh->spells[spellID];
spellSelMode = 0;
if(spell.attributes.find("CREATURE_TARGET") != std::string::npos) //spell to be cast on one specific creature
@ -2833,7 +2833,7 @@ void CBattleInterface::castThisSpell(int spellID)
if(spell.attributes.find("CREATURE_TARGET_1") != std::string::npos ||
spell.attributes.find("CREATURE_TARGET_2") != std::string::npos) //spell to be cast on a specific creature but massive on expert
{
if(castingHero && castingHero->getSpellSecLevel(spellID) < 3)
if(castingHero && castingHero->getSpellSchoolLevel(&spell) < 3)
{
switch(spell.positiveness)
{