1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00
Commit Graph

3037 Commits

Author SHA1 Message Date
13c2b5e2d8 CPathfinder: separate teleporter exits and neighbour tile code
This way code that handle real neighbour tiles is more readable and teleport exits don't have to go via all checks they ignore anyway.
2015-10-10 17:17:41 +03:00
f15065fdc5 CPathfinder: separate neighbours code into getNeighbours
This is first step to make this code usable outside of calculatePaths.
2015-10-10 16:09:40 +03:00
2677d4a677 Fixed action cancel on active stack remove 2015-10-08 08:15:29 +03:00
02c15085be Remove (aready disabled in prev. commit) active stack change in sacrifice mechanics
* stack removing is evil, but changing active stack by spells is more evil ...
2015-10-06 03:59:05 +03:00
f99bf099ca Made player interface tolerant to active stack removal. 2015-10-06 03:46:35 +03:00
4e60b4cf53 Fixed 0002280 2015-10-06 01:26:50 +03:00
f1d9e15783 [Tweak] Magic values-- 2015-10-06 00:33:46 +03:00
6cf220b882 Partial fix for 2272, there are more active stack sacrifice problems. 2015-10-05 20:33:05 +03:00
fa06e05487 Merge branch 'develop' into SpellsRefactoring7 2015-10-05 00:45:57 +03:00
abe02247b5 Fixed bank randomization. 2015-10-02 17:28:33 +02:00
2733927527 Version bump. 2015-10-01 17:22:07 +02:00
b07d272c2a Added new BattleSpellCastParameters support to SACRIFICE spell. 2015-10-01 02:36:00 +03:00
939a9180e2 Added new BattleSpellCastParameters support to TELEPORT spell. 2015-09-30 22:38:50 +03:00
57e5b768e8 Allow multiple destinations in BattleSpellCastParameters 2015-09-30 00:31:50 +03:00
70d9be8447 Use ISpellCaster in battle callback 2015-09-29 17:26:52 +03:00
75c2566410 "const" tweak 2015-09-29 17:26:51 +03:00
36e154d9b9 Use ISpellCaster in getAffectedStacks 2015-09-29 17:26:50 +03:00
947f6089d5 Use ISpellCaster in isImmuneByStack 2015-09-29 17:26:49 +03:00
a4d4851d80 Fix typo: casted->cast 2015-09-29 17:26:48 +03:00
d9cbe487c7 remove useless function CSpell::getTargetInfo 2015-09-29 17:26:47 +03:00
72587a8299 Removed hardcoded check for ANIMATE_DEAD absolute imminity - there is json configuration for that 2015-09-29 17:26:46 +03:00
5f41ec912f fix sphereOfPermanence 2015-09-29 17:26:45 +03:00
3d7435c520 Introduced absolute specific spell immunity. 2015-09-29 17:26:44 +03:00
253b850ac3 Partial fix for 1791 2015-09-29 17:26:43 +03:00
a44c606277 Use callback methods 2015-09-29 17:26:42 +03:00
660203b436 Tweak BattleSpellCastParameters 2015-09-29 17:26:41 +03:00
2b434111bf More hero|creature casting unification 2015-09-29 17:26:40 +03:00
e454649886 Use BattleSpellCastParameters for spell parameters override 2015-09-29 17:26:39 +03:00
10318a3da3 Intoduce PASSIVE_CASTING mode for opening battle spells
* now at least one "caster" object is present
2015-09-29 17:26:39 +03:00
6010bbe7ba More correct usage of battleGetFightingHero
* this should fix "FIXME: battleGetFightingHero wrong argument!"
2015-09-29 17:26:38 +03:00
e552e37cf7 Factored out CDefaultSpellMechanics::battleCast
(-) still huge
2015-09-29 17:26:36 +03:00
baba3a46e1 Centralize creature spell bonuses handling
* unified heal and damage calculation
* apply SPELL_DAMAGE_REDUCTION, MORE_DAMAGE_FROM_SPELL for Fairy dragon
2015-09-29 17:26:35 +03:00
67bd698019 Added some debug logging 2015-09-29 17:26:34 +03:00
873979a300 The only usage of secHero cast parameter is mana channeling - better to get it OTF 2015-09-29 17:26:33 +03:00
46f99db8d7 Hide some spell mechnaics details 2015-09-29 17:26:32 +03:00
2c3a607497 Tweak StacksHealedOrResurrected
* flags should be bool
2015-09-29 17:26:31 +03:00
a1e06aa217 Unify LIFE_DRAIN and Tent healing with magic healing 2015-09-29 17:26:30 +03:00
9ed9075afc Introduce calculateHealedHP again, now in better place. 2015-09-29 17:26:29 +03:00
0929e009db Remove suspicios code in display damage calculation 2015-09-29 17:26:28 +03:00
16f0714474 More usage of OOP in HealingSpellMechanics::applyBattleEffects 2015-09-29 17:26:28 +03:00
0fecb40039 Extract HealingSpellMechanics
* healing effects are too specific to be allowed for any spell
* mixing heal with direct damage does not make sence
* mixing heal with timed effect can be easy allowed if needed
2015-09-29 17:26:27 +03:00
c050fde3f9 Get rid of DefaultSpellMechanics::calculateHealedHP 2015-09-29 17:26:26 +03:00
a35b8a46d3 Comment out wrong code 2015-09-29 17:26:25 +03:00
f66c29ea3b fix comments 2015-09-29 17:26:24 +03:00
05e52993fd Simplified healed HP calculation 2015-09-29 17:26:23 +03:00
eb1753851e Fix comment 2015-09-29 17:25:04 +03:00
f81b46088a Fixed #2218 2015-09-29 11:01:59 +02:00
108d4c39b5 Fix build 2015-09-24 11:55:23 +03:00
6b45f323ea Fixed logic regression from previous commit. 2015-09-23 21:38:16 +02:00
971f6d1c1f Removed WoG dependency for random artifacts. WoG version in repository updated. 2015-09-23 21:14:41 +02:00