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)
|
0.85 -> 0.86 (Sep 01 2011)
|
||||||
GENERAL:
|
GENERAL:
|
||||||
* Reinstated music support
|
* Reinstated music support
|
||||||
|
@ -2866,6 +2866,7 @@ void CBattleInterface::hexLclicked(int whichOne)
|
|||||||
else //we don't aim for spell target area
|
else //we don't aim for spell target area
|
||||||
{
|
{
|
||||||
bool walkableTile = false;
|
bool walkableTile = false;
|
||||||
|
bool spellCast = false;
|
||||||
if (dest)
|
if (dest)
|
||||||
{
|
{
|
||||||
bool ourStack = actSt->owner == dest->owner;
|
bool ourStack = actSt->owner == dest->owner;
|
||||||
@ -2881,6 +2882,7 @@ void CBattleInterface::hexLclicked(int whichOne)
|
|||||||
if ((spell->positiveness > -1 && ourStack) || (spell->positiveness < 1 && !ourStack))
|
if ((spell->positiveness > -1 && ourStack) || (spell->positiveness < 1 && !ourStack))
|
||||||
{
|
{
|
||||||
giveCommand(BattleAction::MONSTER_SPELL, whichOne, actSt->ID, creatureSpellToCast);
|
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
|
if (spellID > -1) //can cast any spell on target stack
|
||||||
{
|
{
|
||||||
giveCommand(BattleAction::MONSTER_SPELL, whichOne, actSt->ID, spellID); //use randomized spell
|
giveCommand(BattleAction::MONSTER_SPELL, whichOne, actSt->ID, spellID); //use randomized spell
|
||||||
|
spellCast = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
creatureSpellToCast = -1;
|
if (spellCast)
|
||||||
return; //no further action after cast
|
{
|
||||||
|
creatureSpellToCast = -1;
|
||||||
|
return; //no further action after cast
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dest->alive())
|
if (dest->alive())
|
||||||
|
2
global.h
2
global.h
@ -38,7 +38,7 @@ typedef si32 TBonusSubtype;
|
|||||||
#define THC
|
#define THC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NAME_VER ("VCMI 0.86b")
|
#define NAME_VER ("VCMI 0.86c")
|
||||||
extern std::string NAME; //full name
|
extern std::string NAME; //full name
|
||||||
extern std::string NAME_AFFIX; //client / server
|
extern std::string NAME_AFFIX; //client / server
|
||||||
#define CONSOLE_LOGGING_LEVEL 5
|
#define CONSOLE_LOGGING_LEVEL 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user