mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix for attacks of casting creatures.
Version set to release build 0.86c.
This commit is contained in:
parent
57216eea44
commit
448a3a6604
19
ChangeLog
19
ChangeLog
@ -1,3 +1,22 @@
|
||||
0.86 -> 0.87
|
||||
|
||||
GENERAL:
|
||||
* Pathfinder can find way using ships and subterranean gates
|
||||
BATTLES
|
||||
* All attacked hexes will be highlighted
|
||||
* New combat abilities supported:
|
||||
- Spell Resistance aura
|
||||
- Random spellcaster (Genies)
|
||||
- Mana channeling
|
||||
- Daemon summoning
|
||||
- Spellcaster (Archangel Ogre Mage, Elementals, Faerie Dragon)
|
||||
- Fear
|
||||
- Fearless
|
||||
- No wall penalty
|
||||
- Enchanter
|
||||
- Bind
|
||||
- Dispell helpful spells
|
||||
|
||||
0.85 -> 0.86 (Sep 01 2011)
|
||||
GENERAL:
|
||||
* Reinstated music support
|
||||
|
@ -2866,6 +2866,7 @@ void CBattleInterface::hexLclicked(int whichOne)
|
||||
else //we don't aim for spell target area
|
||||
{
|
||||
bool walkableTile = false;
|
||||
bool spellCast = false;
|
||||
if (dest)
|
||||
{
|
||||
bool ourStack = actSt->owner == dest->owner;
|
||||
@ -2881,6 +2882,7 @@ void CBattleInterface::hexLclicked(int whichOne)
|
||||
if ((spell->positiveness > -1 && ourStack) || (spell->positiveness < 1 && !ourStack))
|
||||
{
|
||||
giveCommand(BattleAction::MONSTER_SPELL, whichOne, actSt->ID, creatureSpellToCast);
|
||||
spellCast = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2892,11 +2894,15 @@ void CBattleInterface::hexLclicked(int whichOne)
|
||||
if (spellID > -1) //can cast any spell on target stack
|
||||
{
|
||||
giveCommand(BattleAction::MONSTER_SPELL, whichOne, actSt->ID, spellID); //use randomized spell
|
||||
spellCast = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
creatureSpellToCast = -1;
|
||||
return; //no further action after cast
|
||||
if (spellCast)
|
||||
{
|
||||
creatureSpellToCast = -1;
|
||||
return; //no further action after cast
|
||||
}
|
||||
}
|
||||
|
||||
if (dest->alive())
|
||||
|
Loading…
x
Reference in New Issue
Block a user