Commit graph

660 commits

Author SHA1 Message Date
VladimirMangos
e583f543a2 [9066] Small cleanups in spell code.
Mostly avoid unclear "lost" break case
2009-12-25 21:05:11 +03:00
darkstalker
67dd48e2d4 [9061] Fixed SPELL_AURA_MOD_CRIT_DAMAGE_BONU (163) use in calculations.
* Renamed from SPELL_AURA_MOD_CRIT_DAMAGE_BONUS_MELEE
* Also apply to non-melee damage also

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 06:11:10 +03:00
laise
ce30ed1852 [9060] Fixed leave combat by timer.
This also fix some problems with stealth detection.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 05:41:55 +03:00
nos4r2zod
d990644151 [9057] Implement some damage related spell attributes support.
* SPELL_ATTR_EX4_STACK_DOT_MODIFIER
* SPELL_ATTR_EX6_NO_DMG_PERCENT_MODS

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 18:31:03 +03:00
VladimirMangos
5e081196b1 [9049] Additional fixes for talent 17056 and ranks.
Thanks to Sarjuuk for clarify existed problems and help in prepare fix.
2009-12-23 19:48:14 +03:00
MrLama
d432c34307 [9045] Implement talent 48539 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also some typos in mangos.sql field order fixes (sql updates in past ahe been correct)
2009-12-22 00:16:31 +03:00
VladimirMangos
15de428242 [9037] Cleanups in spellmode apply code.
* Add constructores for spellmode creating instead explcit fields init
* Use uint32 for family mask 2 instead unneded uint64

Also drop one from manual applies for uno-existed now spell.
2009-12-20 19:47:14 +03:00
yad02
9d0e943488 [9036] Typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 13:07:20 +03:00
Splinter
54caf1129d [9032] Correctky cast rank 2 mana regent triggred effect for 53228 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 00:55:53 +03:00
laise
0c636c6e3e [9025] Implement talent 63373 and ranks.
Idea with AddTriggeredSpell use suggested by darkstalker.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 06:29:17 +03:00
freghar
a13fa7f873 [9006] Trailing whitespace cleaning
Sorry for a (bit) delayed commit.

Signed-off-by: freghar <compmancz@gmail.com>
2009-12-16 15:38:08 +01:00
Splinter
ffd713cc55 [9004] Drop dead code case
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 17:11:01 +03:00
VladimirMangos
be79375b56 [8994] Re-implement remove auras from channeled target
* Old way have problem with auras that have last tick avent at one from caster/target:
  depndent from auras update order in caster/target pair ti can wrongly not triggered.
* Fxied possible problem with remove same spell non-caster auras at target/caster at spell cast cancel
* Also fix memory lost in old deleted auras cleanup.
2009-12-15 18:50:45 +03:00
VladimirMangos
2defba515e [8991] Merge 2 switch in Unit::HandleProcTriggerSpell 2009-12-14 17:06:40 +03:00
Arthorius
4e55757a94 [8987] Allow swap spell and command/reaction in pet action bar.
* Also prevent command/action drop from action bar
* Pet action bar will recetn at this revision use single time for all pets.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-13 23:04:12 +03:00
Ebrithil
cbb5143348 [8985] Remove morph from spells including aura SPELL_AURA_MOD_PACIFY_SILENCE
This fix at damage transformation remove for spell 51514/47585 and ranks.

Thanks to KAPATEJIb for prepare compatible version for current sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-13 21:23:57 +03:00
VladimirMangos
1d608c482f [8978] Fix wrongly apply weapon damage mods to broken weapon. 2009-12-12 21:12:43 +03:00
Maxxie
d897f55970 [8975] Spell 34914 and ranks will deals damage at dispel.
(cherry-picked from commit 6ff5b6a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-12 07:43:23 +03:00
Sarjuuk
25688fc8eb [8967] Fixed division by zero in Unit::CalcAbsorbResist.
This also fix spell 31662 work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-11 02:33:31 +03:00
VladimirMangos
f5895596c0 [8966] Restore full stack bufs from talent 51528 and ranks using unique aura type. 2009-12-11 02:06:58 +03:00
VladimirMangos
dbd3177121 [8949] Implement proper support spell auras with maxstack > 1 and charges > 0.
* Like auras expected to be proccessed in spell proc event code (not lost charge at use in spellmods code).
  Exist examples for like spells that affect value in spellmods but have different expire requirements.
* Propertly work with stacked auras in spell proc event code
  - remove only one auras from stack
  - in case charges exist in same time not touch charges but return expire
    (all really used auars with maxstack>1 and charges have 1 in one from this values)
2009-12-08 22:04:42 +03:00
VladimirMangos
c6bf3a2cdc [8948] Not check victim at apply SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL for ranged spells
In same way as for other cases. For consistance.
2009-12-08 21:33:13 +03:00
laise
58551fb582 [8947] Implement aura SPELL_AURA_MOD_DURATION_OF_MAGIC_EFFECTS (245)
Used in spell 6117 (5/6 ranks)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-08 12:14:53 +03:00
VladimirMangos
87cc1412f8 [8946] Implement talent 57499. 2009-12-08 10:48:14 +03:00
MrLama
51bdaa6b0e [8945] Update work triggered effect for 20271
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-08 09:58:19 +03:00
Corfen
17e9cafecf [8939] Fixed talent 49200 and ranks triggered spell for arcane school.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-07 16:13:59 +03:00
MrLama
338375c16d [8935] Implement talent 51480 and ranks buff at dispel 8050 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 23:34:33 +03:00
darkstalker
486c628ce2 [8934] Implement aura PELL_AURA_MOD_MINIMUM_SPEED (305) and it used for FORM_GHOSTWOLF.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 23:06:16 +03:00
MrLama
258e0d7389 [8930] Implement bonus periodic heal part for spell 19750 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also code ordering and cleanups.
2009-12-06 21:55:44 +03:00
VladimirMangos
8c1ea4f444 [8925] Implement 34297 and rank in part health/mana effects.
Original patch from unknown author.
Used version provided by nanounico & KAPATEJIb

Rewrited in more proper way.
2009-12-06 08:25:39 +03:00
Splinter
155ea6f40a [8920] Fixed glyph 42408 by move code to more correct place.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 00:39:04 +03:00
Splinter
6094d2368b [8919] Implement telant 44394 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-05 23:16:30 +03:00
Splinter
12d6c33d86 [8914] Implement full damage absorbing chance with telent 11189
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-04 03:28:35 +03:00
Sarjuuk
edd4492630 [8912] Fix item 47668.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-03 03:12:20 +03:00
VladimirMangos
03e16dd08b [8905] Dispel work with aura stacks fixes.
* Implement set of remove aura functions for remove single aura from stack.
  Also some order function declarations for more clear show different aura remove functions.
* Change Spell::EffectDispel to dispel single aura instead all similar auras from caster.
2009-12-02 22:07:50 +03:00
VladimirMangos
840fad2d07 [8899] Implement glyph 43374
Original patch provided by Splinter.

Also sort Unit::HandleDummyAuraProc generic family spells in case.
2009-12-01 13:48:14 +03:00
przemratajczak
cd2ec48742 [8898] Fix typo: get SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT data from victim.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added function for 2 repeated loop code and fix another typo for second SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT case.
2009-12-01 00:32:26 +03:00
Splinter
63258f2407 [8883] Implement instant healing part of talent 63534 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-28 12:55:31 +03:00
Splinter
026e540c49 [8882] Implement talent 63625 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add `spell_chain` data for spell 56636.
2009-11-27 22:04:07 +03:00
Sarjuuk
a744ffc4c0 [8881] Fixed aura SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT(255) apply.
Function use wrong base at fact that spell misc values for this aura store single value instead mask.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-27 19:37:18 +03:00
KAPATEJIb
9c2ee856e0 [8875] Update spell 51505 and ranks work for 3.2.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-26 02:07:49 +03:00
VladimirMangos
663038c7c7 [8870] Fix problem with max pet distance from owner.
* Avoid use hardcoded and different max distance from owner for pet (more at contienets and less in instances)
  Use instaed max visibility for map as expected.
* Explicitly pet remove at move pet to non-visible distance for player owner.

Original patch provided by Lightguard.
2009-11-24 19:10:38 +03:00
VladimirMangos
e6efe02020 [8867] Implement expected combat stop with friendly faction
In case force reaction apply/remove.
2009-11-23 22:40:46 +03:00
VladimirMangos
67e070870b [8860] Prevent spam to clients by iupdates non-modifed threat list.
Also make more stricted access to threat list content.
2009-11-23 01:48:37 +03:00
QAston
d924406bd8 [8858] Implement client inform about creature threat list changes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also small related code cleanups.
2009-11-22 10:33:11 +03:00
DENNO
903ce57db2 [8852] Implement effects for item 47464 and 47303
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-21 08:40:02 +03:00
laise
166c4feaca [8847] Implement talent 20335 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also reorder switch cases by case values.
2009-11-20 17:32:16 +03:00
Splinter
487a8de692 [8843] Drop support removed in 3.2.x spells 31892, 53720.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 13:19:41 +03:00
balrok
21f234bdfa [8842] send SMSG_PARTYKILLLOG when player kills an unit
thx to darkevil for investigations and help
2009-11-20 10:59:51 +01:00
thenecromancer
6c052039fb [8841] Implement talent 65661 and ranks.
SQL part prepeared by Laise.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 10:20:44 +03:00