mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
- Compile fix
- Fixed Basilisk spawning at Hive - Fixed double-shot of Marksman
This commit is contained in:
parent
6ff7d61b91
commit
b554af25d3
@ -5,7 +5,7 @@ void CEmptyAI::init(CCallback * CB)
|
||||
{
|
||||
cb = CB;
|
||||
human=false;
|
||||
playerID=cb->getMyColor();
|
||||
playerID = *cb->getMyColor();
|
||||
std::cout << "EmptyAI initialized." << std::endl;
|
||||
}
|
||||
void CEmptyAI::yourTurn()
|
||||
|
@ -286,7 +286,7 @@
|
||||
{
|
||||
"chance": 30,
|
||||
"guards": [ { "number": 30, "id": 105} ],
|
||||
"upgrade_chance": 30,
|
||||
"upgrade_chance": 0,
|
||||
"combat_value": 154,
|
||||
"reward_creatures": [ { "number": 4, "id": 108 } ],
|
||||
"value": 3200,
|
||||
|
@ -69,6 +69,13 @@
|
||||
"id": 3,
|
||||
"level": 2,
|
||||
"faction": "castle",
|
||||
"abilities": [
|
||||
{
|
||||
"type": "ADDITIONAL_ATTACK",
|
||||
"val" : 1,
|
||||
"effectRange": "ONLY_DISTANCE_FIGHT"
|
||||
}
|
||||
],
|
||||
"graphics" :
|
||||
{
|
||||
"animation": "CHCBOW.DEF",
|
||||
|
@ -883,6 +883,8 @@ void CStack::postInit()
|
||||
assert(type);
|
||||
assert(getParentNodes().size());
|
||||
|
||||
//FIXME: the following should take into account ONLY_ENEMY_ARMY bonus range
|
||||
|
||||
firstHPleft = MaxHealth();
|
||||
shots = getCreature()->valOfBonuses(Bonus::SHOTS);
|
||||
counterAttacks = 1 + valOfBonuses(Bonus::ADDITIONAL_RETALIATION);
|
||||
|
Loading…
Reference in New Issue
Block a user