1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/lib/battle
MikeLodz 38efbb345e Fixes mantis tickets 2899 and 2984 (bugged hero spell specialties)
- stoneskin/haste/prayer/weakness: didnt work because there were 2 bonus objects in buffer and they were filtered out as a possible duplicate (BattleInfo::addOrUpdateUnitBonus). it was fixed by making them a single bonus.
- disrupting-ray and weakness: had opposite effect, because of missing negation
- added a new specialty types: SPECIAL_ADD_VALUE_ENCHANT and SPECIAL_FIXED_VALUE_ENCHANT. this is to make possible specialties like Aenin (fixed specialty value added to spell value) and Melody (fixed value for spell regardless of anything). These specialties can be used in mods with any heroes.
- slayer spell effect calculations was fixed to include hero Coronius-style specialty.
- finally fixed description for Labetha Conflux hero, this is a OH3 bug described here https://heroes.thelazy.net/index.php/Labetha
Changes were tested and work as intended.
commit was made in cooperation with modder Misiokles
2021-02-08 23:58:12 +01:00
..
AccessibilityInfo.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
AccessibilityInfo.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
BattleAction.cpp Creature spellcast refactor (#569) 2019-05-04 06:42:55 +03:00
BattleAction.h Creature spellcast refactor (#569) 2019-05-04 06:42:55 +03:00
BattleAttackInfo.cpp Some changes to make the battle AI smarter 2020-05-05 17:53:03 +03:00
BattleAttackInfo.h Some changes to make the battle AI smarter 2020-05-05 17:53:03 +03:00
BattleHex.cpp Fixed lots of warnings. 2020-10-04 02:20:18 -07:00
BattleHex.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
BattleInfo.cpp found a bug in code where AI can change client gamestate directly causing sorting crash 2021-01-30 17:29:49 +02:00
BattleInfo.h Fix bug: LandMine is not exploding to enemies. (#630) 2020-02-12 20:12:12 +03:00
BattleProxy.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
BattleProxy.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
CBattleInfoCallback.cpp Fixes mantis tickets 2899 and 2984 (bugged hero spell specialties) 2021-02-08 23:58:12 +01:00
CBattleInfoCallback.h Fix obstacles escaping for twohex creatures 2020-11-22 08:57:28 +02:00
CBattleInfoEssentials.cpp Fix: Morale bonus should be shown correctly 2020-11-11 22:43:40 +03:00
CBattleInfoEssentials.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
CCallbackBase.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
CCallbackBase.h Fixed RETURN_IF_BATTLE(). Undid disabled warnings. Fixed indentation. 2020-10-05 16:28:28 -07:00
CObstacleInstance.cpp Fix bug: LandMine is not exploding to enemies. (#630) 2020-02-12 20:12:12 +03:00
CObstacleInstance.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
CPlayerBattleCallback.cpp Code style: remove default value hints in definitions (#342) 2017-07-15 14:08:20 +03:00
CPlayerBattleCallback.h tweak 2017-08-10 20:57:36 +03:00
CUnitState.cpp Fix: Morale bonus should be shown correctly 2020-11-11 22:43:40 +03:00
CUnitState.h Fixed incorrect usage of const std::shared_ptr. Resolves 0003142. 2020-09-30 22:56:28 -07:00
Destination.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Destination.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
IBattleState.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
IBattleState.h Fix bug: LandMine is not exploding to enemies. (#630) 2020-02-12 20:12:12 +03:00
IUnitInfo.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
ReachabilityInfo.cpp moat bypass when no targets to attack 2020-12-02 19:40:24 +02:00
ReachabilityInfo.h moat bypass when no targets to attack 2020-12-02 19:40:24 +02:00
SideInBattle.cpp Precompiled header path also needs fix 2017-07-01 20:05:10 +02:00
SideInBattle.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
SiegeInfo.cpp Precompiled header path also needs fix 2017-07-01 20:05:10 +02:00
SiegeInfo.h Code style: serialize everything on own lines for easier debugging (#357) 2017-07-31 16:35:42 +03:00
Unit.cpp moat bypass when no targets to attack 2020-12-02 19:40:24 +02:00
Unit.h moat bypass when no targets to attack 2020-12-02 19:40:24 +02:00