1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/spells/effects
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
..
Catapult.cpp Simplify statements 2019-03-31 09:43:14 +03:00
Catapult.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Clone.cpp Initialize the change: 2020-01-25 01:21:26 -08:00
Clone.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Damage.cpp Fixed lots of warnings. 2020-10-04 02:20:18 -07:00
Damage.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Dispel.cpp Fixed incorrect usage of const std::shared_ptr. Resolves 0003142. 2020-09-30 22:56:28 -07:00
Dispel.h Fixed incorrect usage of const std::shared_ptr. Resolves 0003142. 2020-09-30 22:56:28 -07:00
Effect.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Effect.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Effects.cpp Fixed https://bugs.vcmi.eu/view.php?id=2904 2018-03-04 11:15:24 +03:00
Effects.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
EffectsFwd.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Heal.cpp Fixed https://bugs.vcmi.eu/view.php?id=3059 2019-06-09 22:46:29 +03:00
Heal.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
LocationEffect.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
LocationEffect.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Obstacle.cpp Fixed lots of warnings. 2020-10-04 02:20:18 -07:00
Obstacle.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Registry.cpp Possible fix for https://bugs.vcmi.eu/view.php?id=2913 2018-03-10 19:35:20 +03:00
Registry.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
RemoveObstacle.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
RemoveObstacle.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Sacrifice.cpp Simplification fixes 2019-03-31 09:43:14 +03:00
Sacrifice.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Summon.cpp Fixed lots of warnings. 2020-10-04 02:20:18 -07:00
Summon.h Summon effect fixes. 2018-03-03 20:37:49 +03:00
Teleport.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Teleport.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
Timed.cpp Fixes mantis tickets 2899 and 2984 (bugged hero spell specialties) 2021-02-08 23:58:12 +01:00
Timed.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
UnitEffect.cpp Simplify statements 2019-03-31 09:43:14 +03:00
UnitEffect.h Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00