Commit graph

714 commits

Author SHA1 Message Date
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
VladimirMangos
ee0089826d [9742] Final cleanup in non proper now EffectBasePoints use. 2010-04-13 16:11:16 +04:00
SilverIce
d8736576d3 [9738] Restore build on *nix
Also fix my typo in Unit::SelectRandomUnfriendlyTarget

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-13 00:47:25 +04:00
SilverIce
e3f3f3410a [9736] Added more usable interface for grid visits
(based on SilverIce's repo commit f20f01e)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-12 15:15:55 +04:00
VladimirMangos
50c7e57541 [9722] Please include spell names in comments in code and and avoid its used in commit notes. 2010-04-10 21:15:01 +04:00
SKW
8f18a0d920 [9720] Implement Glyph of Siphon Life and fix Siphon Life proc
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-10 10:01:30 +03:00
Laise
15e4d337c3 [9709] change case 0 handle for basepoints calculation 2010-04-09 18:21:21 +03:00
VladimirMangos
53486545b5 [9701] Fix basepoints calculation
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-08 23:15:48 +03:00
VladimirMangos
6bcbbc321b Merge branch 'master' into 330 2010-04-07 06:58:42 +04:00
VladimirMangos
7708905bb7 Remove outdated spell proc data and update code for 44394 and ranks. 2010-04-07 02:11:31 +04:00
VladimirMangos
ff137bba24 [9683] Drop dead code in 3.x for spell 29801. 2010-04-07 00:12:10 +04:00
qsa
570852e70e [9676] Implement AURA_252
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-06 21:05:34 +03:00
VladimirMangos
8d97ad06b2 Fixed random base poinst part calculation
0 - unused, 1 -> always +1, other in ranges (rand...1) or (1..rand)
2010-04-06 18:49:53 +04:00
megamage
b7204c9e8d [9675] Fix SPELL_DAMAGE_CLASS_NONE hit result
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-05 19:46:47 +03:00
tomrus88
a030f6aaad How this happened? 2010-04-05 14:01:29 +04:00
tomrus88
05f42d995f Fixed few typos. 2010-04-05 01:33:23 +04:00
tomrus88
9a0545cd05 Merge remote branch 'origin/master' into 330 2010-04-04 15:50:18 +04:00
laise
56e1e48161 [9667] Implement 57849 and ranks.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-03 16:15:47 +02:00
tomrus88
f2572fdda0 Merge remote branch 'origin/master' into 330 2010-03-31 02:29:02 +04:00
VladimirMangos
5c7f6356d6 [9644] Changes in emotes work.
Waypoint/db script/event ai/'.npc playemote' emote data now auto select by emote id way to execute:
oneshot or persistent state

So if in referenced DB data wrongly used state emote as oneshot case this will work in different way now.
2010-03-30 22:13:55 +04:00
XTZGZoReX
34e56c9978 [9641] Fix typo; IN_MILISECONDS -> IN_MILLISECONDS. 2010-03-30 14:44:57 +02:00
tomrus88
4c8dd37612 Merge remote branch 'origin/master' into 330 2010-03-30 13:06:34 +04:00
XTZGZoReX
51fd11c92c [9638] Replace all C assert()s with MaNGOS ASSERT() macro. 2010-03-29 19:29:42 +02:00