Commit graph

786 commits

Author SHA1 Message Date
SilverIce
e427ce80cc [10052] Camera System
(based on SilverIce's repo commit 4f2f4ab + next 3 more)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-14 07:23:03 +04:00
virusav
a248a1a32d [10049] Fix SPELL_AURA_MOD_HEALING_DONE healing bonus with 0 misc value
Signed-off-by: Laise <fenrisse@gmail.com>
2010-06-10 12:16:44 +03:00
tehmarto
5ea6815ea1 [10041] Use for spell 49145 and ranks for decrease SPELL_DIRECT_DAMAGE damage.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:27:16 +04:00
zergtmn
7f8ad96038 [10039] Partly revert [10033] for spell 44394 and ranks related code.
Not all ranks of spell have proper triggered spell info.
Return to old more explicit code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:03:05 +04:00
zergtmn
ff2f722f49 [10038] Prevent double triggering heal from 63534 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also use more simple and safe checks for added in [10035].
2010-06-06 21:49:40 +04:00
Insider42
18ffffd379 [10035] Additinal reqs for spell 49219/51459 and ranks triggering.
* Only at melee attack or spell 56815 hit.
* Spell 49219 and ranks also ignore offhand attack.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 18:09:37 +04:00
VladimirMangos
ea9dd78d35 [10034] In case unknown triggered spell output more known info for location problem. 2010-06-06 17:55:54 +04:00
VladimirMangos
63018ccc4a [10033] Use sometime stored in spell data triggred spell info for dummy auras. 2010-06-06 17:44:07 +04:00
Laise
f94175f90f [10030] Add aura remove modes for expire and absorb shield break cases and use GetTarget()/GetSpellProto() instead of m_target/m_spellProto 2010-06-05 09:12:00 +03:00
VladimirMangos
59cf9c1dbd [10010] Use schoolmask enum in struct SpellNonMeleeDamage, some indents fix. 2010-05-31 08:09:03 +04:00
Tassadar
4d61fba28f [9987] Restore work talent 12311 and ranks.
Thanks to insider42 for prepare patch for mangos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 00:46:12 +04:00
insider42
5a8c84a2ec [9986] Talent 51459 and ranks affect only melee auto-attacks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 00:09:47 +04:00
VladimirMangos
ce85076033 [9981] For non-player at "offline" delete hostile references.
This must fix porblem with call message broadcast from unit destructor.
2010-05-27 14:56:37 +04:00
insider42
fe69843ce7 [9977] Update talent 16180 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-26 22:15:06 +04:00
VladimirMangos
c7ea2be1d1 [9962] Modify way 4x damage bonus claculated for spell 1120 and ranks.
* Now apply 4x bonus dependent from target health in time spell cast,
  not from current health in tick.
* 4x bonus applied to own spell damage value, not to total taken damage.
2010-05-23 15:32:13 +04:00
pasdVn
2c396da82b [9961] Restore work talent 18213 and ranks.
Thanks also to insider42 for updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-23 15:05:23 +04:00
VladimirMangos
d4f1b510ae [9934] Skinning related fixes
* Show skinning tooltip only after creature loot
  (when creature can be explcitly skinned).
* Allow reopen skinning loot if still have not looted items.
2010-05-19 15:35:20 +04:00
VladimirMangos
54c2da8d53 [9929] Move apply spell coeffs and level penalties code to new function.
* No reson have 6 copies near to exactly same code.

* This fix problem with apply attack power bonus in some case.
  Thanks to Wowka321 for find and reseach problem.
2010-05-19 02:50:31 +04:00
zergtmn
611b53fab8 [9926] Typos in Unit::DealDamageMods
Can be source very strange damage/absorb and any near stored/calculated in memory values. and crashes also.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 14:21:22 +04:00
VladimirMangos
d86dcd60d7 [9925] Add more log filters
* damage - different direct damage calculation tracing
* combat - combat state updates, roll attack result and etc
* spell_cast - spell cast progress and aura apply
2010-05-18 12:38:52 +04:00
VladimirMangos
bed8794a75 [9921] In case player who tap creature in group leave group it must anyway rewarded with group. 2010-05-18 04:48:33 +04:00
KillerFrca
e5dc7a098c [9920] Restore group rewarding at player kill.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 04:37:59 +04:00
VladimirMangos
696a4b6db0 [9918] Fixed player's tapped creature loot access by group in diff cases
* If player tap creature in group and leave then group will have access to creature loot if not disbanded
* If player tap creature and after join to group then creature loot will accesable only by player
* Also RewardPlayerAndGroupAtKill divided to simgle player and group reward versions used for group tap
  and single player tap cases.
2010-05-17 12:56:57 +04:00
darkstalker
9fb36ed021 [9900] Fix SPELL_MOD_SPELL_BONUS_DAMAGE applying
Signed-off-by: Laise <fenrisse@gmail.com>
2010-05-15 11:37:07 +03:00
VladimirMangos
6e92d43237 [9897] Avoid multiply AP bonus coeff. with spell power bonus.
Problem exist in original code before recent commits.
2010-05-15 11:17:38 +04:00
nos4r2zod
b2b8ca1d70 [9896] Cleanup spell bonus coeff use code
* Avoid coeff calculation if target value is 0.0f
* Avoid use spell_bonus_data coeffs for creature damage.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:17:17 +04:00
nos4r2zod
e880e7d236 [9895] Move DotFactor+GetSpellCastTimeForBonus call to CalculateDefaultCoefficient
* This coeff used if not spell_bonus_data provided for spell
* Continue prev. commit line expected that creature casts not affected by DotFactor

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:16:02 +04:00
nos4r2zod
4951f846dd [9894] Move GetCastingTimeForBonus and some other code to GetSpellCastTimeForBonus.
Important changes:

* Chaged way caluclation "-5% of total per any additional effect" to percent
  apply instead use raw value that correct only for 3500 cast time spells.
* GetSpellCastTimeForBonus result now alwasy not applied to creature casted spells
  Before it not applied only to instant spells. Please test if this ok in all cases.
* Leech effect modify spell casting time move into GetCastingTimeForBonus and then called
  also for melee spells. But only creature spells exist with melee class damage and its
  not affected by GetCastingTimeForBonus anyway now.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:15:05 +04:00
tomrus88
ff2cda6af1 [9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423)
(based on 400's commit 636cfef)
(based on 400's commit 0bbe3a7)
(based on 400's commit ce86b56)
(based on 400's commit b74c6a8)
2010-05-10 23:45:49 +04:00
Laise
aa59339e1a [9857] Fix double damage dealing of 63625 and ranks. Thanks to Revils 2010-05-10 12:06:10 +03:00
Laise
4c3d2805bd [9854] Fix negative amounts for spell base damage/healing and fix heal effects to correctly benefit from heal increasing/reducing auras 2010-05-09 20:33:36 +03:00
pasdVn
2846ea21f1 [9845] Fix dispel damage for 30108 and ranks
Signed-off-by: Laise <fenrisse@gmail.com>
2010-05-07 16:39:01 +03:00
hunuza
68abd76c97 [9844] Fix some whitespace errors.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-05-07 12:25:12 +02:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
Laise
e83aa1ba9d [9837] Remove calls to Taken part when its not used for damage dealing and fix HoT tick amount used in 18562 code(Thanks to insider42) 2010-05-05 06:58:16 +03:00
Laise
9c6b53aca9 [9834] Fix damage bonus applying from 49471 and ranks to 49143 and ranks 2010-05-04 17:12:06 +03:00
Laise
0cc946e91e [9831] Fix type conversion in spell/healing bonus calculations 2010-05-04 07:22:18 +03:00
VladimirMangos
57dcc84940 [9824] Use in taxi flight movegen original taxipath data. 2010-05-02 06:14:26 +04:00
Laise
a69018efec [9803] Fix typo in taken damage/healing bonus calculations and fix damage of 64085 2010-04-29 13:14:44 +03:00
Laise
471af8fb27 [9798] Implement basic splitting for caster/target part damage/heal bonus calculations, periodic damage/heal over time auras will now store m_amount with caster side bonuses applied and calculate target part on each tick. Currently critical chance/bonus calculations are not affected by this change 2010-04-27 13:13:50 +03:00
Laise
51546e1ff9 [9789] Implement spell selection, for creatures in instances, based on map difficulty 2010-04-24 20:08:18 +03:00
Laise
10b65dcf8f [9784] Move damage and crit calculation for certain effects of spells with delayed hit to spell launch 2010-04-23 19:53:51 +03:00
Laise
8ec81caabf [9783] Update 33851 and ranks according to 3.1.0 patch notes 2010-04-23 18:17:12 +03:00
Laise
d1dd6a8ca3 [9782] Small clean up in 2 method names 2010-04-23 16:05:41 +03:00
Laise
236a578d52 [9780] Change CalcAbsorbResist/isBlocked to be called from target side 2010-04-23 06:58:58 +03:00
VladimirMangos
15dd77873e [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
hunuza
1ef89c7a22 [9776] Set m_mover to NULL on remove SPELL_AURA_MOD_POSSESS by delete.
This should fix a related crash.

Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-22 18:59:51 +02:00
faramir118
c9ac685f04 [9766] Remove outdated code for 54936
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-20 12:03:55 +03:00
Laise
6610484609 [9754] Rename flight speed related auras and fix spell 40120 2010-04-16 17:54:58 +03:00
VladimirMangos
92b11459b1 [9748] Fixed startup problems after recent realmd DB. 2010-04-14 16:40:11 +04:00