mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed Duel mode. Integrated some changes from programmingChallenge branch - it's possible to define duel parameters using JSON.
This commit is contained in:
@@ -56,6 +56,8 @@ si8 CBattleInfoCallback::battleCanTeleportTo(const CStack * stack, BattleHex des
|
||||
|
||||
std::vector<int> CBattleInfoCallback::battleGetDistances(const CStack * stack, BattleHex hex /*= BattleHex::INVALID*/, BattleHex * predecessors /*= NULL*/)
|
||||
{
|
||||
// FIXME - This method is broken, hex argument is not used. However AI depends on that wrong behaviour.
|
||||
|
||||
if(!hex.isValid())
|
||||
hex = stack->position;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user