Commit graph

592 commits

Author SHA1 Message Date
Laise
a32b3063a2 [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
Insider42
35bf2a56dd [10144] Fix movement impairing effects remove for 65547
Signed-off-by: Laise <fenrisse@gmail.com>
2010-07-03 12:16:02 +03:00
Insider42
55542a5219 [10143] Set correct real caster for 48181 and ranks
Signed-off-by: Laise <fenrisse@gmail.com>
2010-07-03 12:10:05 +03:00
NoFantasy
1713caae17 [10115] Add function to update model_info at changes to scale or model.
* At every change to model or scale, the related data (bounding_radius/combat_reach) is now updated accordingly (note that player combat_reach are not changed like creature).
* UpdateModelData is called from within SetDisplayId while changes to scale has explicit call to UpdateModelData after new scale is set (mostly for aura scale)
* The updated values are calculated by (scale*bounding_radius)/(scale*combat_reach)
* Database values for bounding_radius/combat_reach are expected to be relative to scale like 1.0

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-28 12:10:56 +02:00
PSZ
a0fff5b8e7 [10092] Correct 3 more auras to check AURA_REMOVE_BY_EXPIRE mode after change in 10030
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-21 23:28:24 +02:00
Laise
407156cbaf [10088] Restore work of 1120 and ranks. (Revert of [9962]) 2010-06-20 22:30:57 +03:00
VladimirMangos
3e210228f9 [10076] Fixed crash at remove from world pet under SPELL_AURA_MOD_POSSESS_PET
* Prevent crash at camera list update at attempt increment end() iterator.
* Properly do unapply SPELL_AURA_MOD_POSSESS_PET (GetPet() can return NULL at call, and not need checked)
* Propertly call unapply at delete auras cases for auras that set player-caster mover pointer.
2010-06-19 02:31:07 +04:00
VladimirMangos
81851074ad [10075] Attempt use more expected by result buffs downranking algo.
* In small rate more fast
* Not affect non-buff ranked spells like 10909
2010-06-18 04:21:34 +04:00
VladimirMangos
07a931e141 [10074] Add IsPassive(SpellEntry*) function and use in cases wjern entry already known.
Some other small code cleanups
2010-06-18 02:17:51 +04:00
zergtmn
e34315f23f [10057] Type in UNIT_STAT_CONTROLLED
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-14 22:08:20 +04:00
VladimirMangos
b4b45333d8 [10053] Use UNIT_STAT_CONTROLED for mark unit state under direct player control.
* This allow prevent move home/to caster at apply
* Also replace AI and reset movegens at control time
* Also stop combat and clear threat/hostile list at lost control for prevent combat with freindly units.
2010-06-14 10:27:44 +04:00
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
VladimirMangos
f520c9b1e0 [10051] Fixed talent 58426 broken after 3.3.3 switch.
Also cleanup character auras from wrong duration auras.
2010-06-12 04:32:33 +04:00
AbsoluteZero
32bed90aa9 [10036] Fixed health restore and triggering cooldown for talent 30881 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 18:39:08 +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
ff3fb9b727 [10027] SPELL_AURA_ADD_TARGET_TRIGGER long time not use spellmod for work.
Drop dead code.
2010-06-03 23:39:13 +04:00
VladimirMangos
57ca730a2f [10019] Implement glyph 45623.
Thanks to Most_Mangos, DonTomika, darkstalker  for dollution research.
2010-06-02 03:44:24 +04:00
VladimirMangos
59cf9c1dbd [10010] Use schoolmask enum in struct SpellNonMeleeDamage, some indents fix. 2010-05-31 08:09:03 +04:00
insider42
2681cd7de7 [9979] Update max cooldown length req. for spell casting at arena.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-27 00:37:03 +04:00
VladimirMangos
4e716c67da [9978] Add explicit AP damage bonus for spells 55095, 55095.
Original patch provided johonson.
2010-05-27 00:05:16 +04:00
VladimirMangos
e6c874db13 [9975] Use special function for honored/xp kill check 2010-05-26 19:13:03 +04:00
Insider42
ff9990a777 [9965] Fixed triggering of spell 55095 by 45524.
(based on insider42's repo commit 90de00d)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

It include reverts commit ca99760e884d82219fff63ecf5f2ca87b02b5924
with less clean implemetation.

[patch 155] Fixed triggering of spell 55095 by 45524. Patch provided by me

(based on commit 90de00d)
2010-05-23 18:36:40 +04:00
VladimirMangos
702d368114 [9963] Implement per-tick chance for shard for spell 1120 and ranks. 2010-05-23 17:39:20 +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
DonTomika
3f4544df9d [9960] Implement glyph 43390.
Chance unknown and seelcted by more recent comments.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-23 14:41:27 +04:00
VladimirMangos
94f7a7709d [9956] Spell 45524 expected apply debuf 55095 to target at cast. 2010-05-22 16:19:29 +04:00
j4r0d
c2fc89c86c [9946] Prevent remove unexpected for remove spell at cast 35729.
Also drop removed spell call for spells 19574/34471.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-21 07:55:36 +04:00
zergtmn
cad8693819 [9933] Call DealDamageMods for leech DoTs damage
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-19 05:15:12 +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
NoFantasy
628f11e1a7 [9914] Add script effect of spell 51864, 51889 and 51910
In addition, dummy effect of spell 51866 and 51872 and dummy aura effect of spell 51870.
Dummy effect of 51866 might need additional work (see comments).

Code expect additional spell cast by AI (summon dummy at death of related quest target creatures).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-16 13:52:51 +02:00
KillerFrca
5b5552112d [9901] Implement 71342 mount selection 2010-05-15 16:43:55 +03:00
Laise
188db9691f [9884] Code style fixes thx to hunuza & Wowka321 2010-05-12 17:43:15 +03:00
Laise
41c58f3be9 [9882] Add support for mounts dependent from riding skill and location 2010-05-12 13:34:10 +03:00
reeshack
789f2f8167 [9874] Fix auras with custom periodic damage not entering spell/melee bonus damage done methods
Signed-off-by: Laise <fenrisse@gmail.com>
2010-05-11 22:20:57 +03:00
Insider42
c5008073f3 [9868] Impliment glyph 42905.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-11 12:52:53 +04: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
Laise
4459f3a070 [9846] Restore work of 44745 and rank/s 2010-05-07 17:24:07 +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
VladimirMangos
34d1c80c85 Replace DOS lines ends by Unix version. 2010-05-03 04:19:38 +04:00
KiriX
c5ed3978bc [9826] Fix spell 38736
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-05-02 23:17:56 +02:00
Laise
e076f50a2f [9818] Fix display bug when spell with more than 1 persistent area aura effect had several icons 2010-05-01 20:54:20 +03:00
KiriX
7ce07fb495 [9809] Drop dead code after switch.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-29 22:19:22 +04: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
Chipleo
108f683469 [9787] Allow propertly remove attack speed buff/debuff at death.
Check wrong and redundent (not use in other similar auras).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-24 10:10:02 +04: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
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
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
Laise
4d89b41f60 [9774] Fix periodic damage combat log displaying 2010-04-22 11:07:23 +03:00