Commit graph

652 commits

Author SHA1 Message Date
Lynx3d
47397ff19b [10509] Fix some "foo initialized after bar" gcc warnings and remove some unused variables. 2010-09-20 10:07:25 +02:00
VladimirMangos
f0956e258c [10484] Use for auraholde/aura GetStackAmount uint32 result.
uint32 result used in most expressions for stack calculation/compare
Alos uint8implicitly casted to int by C++ in expressions that generate unexpected
signed/unsigned warnings in comparisons (uint8 +1) > uint32 and similar.
2010-09-14 21:30:42 +04:00
darkstalker
919dc87bac [10479] Implement heak absorb for periodic heal
Also fix SMSG_PERIODICAURALOG for periodic heal for 3.5.5

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-13 03:10:10 +04:00
VladimirMangos
6af66f1ae4 [10478] Implement item 49623 visual effects.
Original patch provided by Darkruler.
2010-09-13 02:12:06 +04:00
faramir118
f8c258608f [10477] Fixed heal amount for some cases heal absorb
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-12 20:35:18 +04:00
VladimirMangos
84a915e1b1 [10475] Implement SPELL_AURA_HEAL_ABSORB (301)
Used for example in spells 66237 and 70659.

Also rename CalculateAbsorbAndResist -> CalculateDamageAbsorbAndResist
2010-09-12 02:45:26 +04:00
VladimirMangos
8eb47efddc [10472] Implement SPELL_AURA_MOD_PET_AOE_DAMAGE_AVOIDANCE (310)
Original patch provided by rsa
2010-09-12 00:20:35 +04:00
Patman64
ad23b7ca05 [10468] Typos in comments in recent patches.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-11 12:10:30 +04:00
tester20tester20 tester20
7785daf2f9 [10467] Implement proper triggering for spell 34477, 57934
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fixed charges amount (1) for main spell auras.
2010-09-11 02:31:46 +04:00
Toinan67
4d30b464b4 [10466] Proper reset threat rediraction for existed spells.
In 3.5.5a this is: 34477, 57934, 59665 and triggered spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-11 01:09:22 +04:00
VladimirMangos
aa90aa8fdf [10462] Implement spell 6495
Also implement proper work CMSG_FAR_SIGHT.
This packet control switch view point from far sight object to caster
and back wihtout modify far sight object seelction.
2010-09-10 05:32:51 +04:00
VladimirMangos
77148f0e60 [10459] Restore update area aura values at caster/around targets.
For example, at related improvement talent learn by caster.
It has been disabled in aura holder code changes.
2010-09-09 16:28:18 +04:00
VladimirMangos
dfc9966d3b [10445] Re-implement in more safe way single cast spell targets system.
It also fix case when target can unexpected lost single target aura at phase switch
in case when target still visible in new phase (pet for example)
2010-09-05 07:47:45 +04:00
Laise
924cf7c46b [10442] Fix armor bonus part of talent 33853 and ranks 2010-09-04 16:48:40 +03:00
darkstalker
3ff64ef35e [10436] Fix typos in invisibility aura handlers
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-03 07:38:22 +03:00
VladimirMangos
acd0716297 [10432] Rename ASSERT -> MANGOS_ASSERT and related fixes
ASSERT hard use in predictable way because diff. 3rd party libs code
redefine it inf different ways and hard make sure that used in end
of mangos define version. This is real detected problem make some
expected assert checks ignored and so bugs not detected as expected from code.

In addition made related changes:
* Common.h header expected to be first include in any src/game/header except most simple cases.
* Related FILE.h header expected to be first include in FILE.cpp
* Fixed some absent includes and type forwards for safe build without PCH enabled.
* Avoid using MANGOS_ASSERT in src/framework code
2010-09-02 05:13:16 +04:00
Laise
694bdd43e3 [10425] Add comment in Aura::CanProcFrom 2010-08-30 10:07:58 +03:00
Laise
821444445b [10416] fix 71611 proc and remove check for family name if no spell_proc_event is defined 2010-08-28 09:29:04 +03:00
Wowka321
0ab4adf517 [10405] Restore remove spell affect 58427 after stealth fade.
(based on Wowka321's repo commit 45c5757)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-24 16:14:46 +04:00
NoFantasy
d0df25fd8c [10381] Implement generic system for racial model selection
Table creature_model_info store creature entry to use model from (or explicit model). The selection is based on a base modelId and racemask.

Hacks for shapeshift models removed (data included in SQL update)
Dropped no longer needed creature_model_info.modelid_other_team, as creature_model_info can and should be used instead (sorry, this is what happen when author doesn't do full research :) )

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-19 16:58:53 +02:00
NoFantasy
a15b0916b6 [10373] Drop unused team-argument in ChooseDisplayId -function
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-18 18:09:56 +02:00
VladimirMangos
4d3e26a4c0 [10360] Restore triggered auras cleanup at main aura expire after auraholders adding. 2010-08-15 08:05:47 +04:00
Lynx3d
fbf517e763 [10348] Add missing Player check in unapply part of [10345]
Yes copy&paste is evil...
2010-08-11 23:53:58 +02:00
Lynx3d
29281d476a [10345] Fix passive spells that are active without shapeshift and certain shapeshift forms only.
Currently, 63411 is the only affected spell, but implementation is hopefully generic enough to cover future cases.
2010-08-11 19:42:20 +02:00
NoFantasy
76aa99627f [10343] Correct order of spell id's in dummy aura effect
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-11 17:43:16 +02:00
VladimirMangos
779e40d5ff [10332] Save cast item guid for auras also.
This must fix another way duplicate aura adding to DB error.
It also prevent wrong stacking work for weapon equip bufs
in cases when its allowed for both wepoan indepndently apply.
2010-08-09 06:17:23 +04:00
NoFantasy
fefd648d3e [10330] Add dummy aura effect of spell 10255 and dummy effect of 10254
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-08 23:40:33 +02:00
zergtmn
d31ce2e2a3 [10315] Make AuraHolder::IsDeleted() really work.
In fact it has been broken originally when added in Aura long before move it to AuraHolder.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-04 01:36:56 +04:00
VladimirMangos
835efe7f6a [10313] Drop now unused Aura::m_deleted.
Most functionality move to similar flag of AuraHolder.
2010-08-03 14:42:40 +04:00
Vinolentus
0880454847 [10306] Restore spell boosts apply.
It has been broken in srange way at moving function to SpellAuraHolder :/
Must restore work many additional auras affects

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-01 19:20:04 +04:00
NoFantasy
2455450cc0 [10302] Add dummy aura effect of spell 31606
Note: it is expected that script side update player displayId at end of related taxi path. If not, player will be stuck with the model.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-01 02:10:22 +02:00
NoFantasy
7bdf05901d [10296] Move ChooseDisplayId to Creature class for access from script side
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 21:08:58 +02:00
NoFantasy
767032029f [10294] Add dummy aura effect of spell 47190 (part w/ buff(transform))
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 19:16:35 +02:00
NoFantasy
25d9fd265b [10293] Correct a not exitan...non-existin... a word that is often spelled wrong
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 18:26:08 +02:00
VladimirMangos
b1cbb1634d [10291] Use new fast/safe way for access aura in drink item spells.
Access useing aura->holder->some_effect_aura let have always pointer to exactly
expected aura from same cast if this need.
2010-07-30 19:42:30 +04:00
NoFantasy
2ae0badf48 [10289] Adjust creature models system
This change will:
* make it easier to use cached data directly without any modifications
* correct issues regarding invisible models
* simplify certain aspects of model selection itself and make it somehow easier to control and maintain special cases.

Two new fields added to creature_model_info, to store modelid_alternative and modelid_other_team
* _alternative holds an alt. model, for cases where gender are the same, or is not male/female.
* _other_team is generally used for totem models, but may have future use.

This commit will possibly break a few things (visually) and will require DB projects to update their creature_template models data.
It is advised to use cache data as-is, and in addition fill creature_model_info for certain models, totems in particular, for expected appearance.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 16:40:17 +02:00
VladimirMangos
3099a99f9a [10288] Unsummon pet if pet direct control spell expire out of visibility range from owner. 2010-07-30 05:01:35 +04:00
Laise
68693b6e56 [10261] Revert [10259] -_- 2010-07-24 17:24:52 +03:00
Laise
4d5729e68c [10259] Fix some iterator in Aura::HandleAuraModShapeshift 2010-07-24 17:08:24 +03:00
Laise
3e326311ad [10240] Fix some spells proc from spells that don't deal damage/heal 2010-07-21 08:16:23 +03:00
Ceris
d7b6840634 [10236] Implement SPELL_AURA_OPEN_STABLE (292).
(based on Wowka321's repo commit 213ceb0)

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

Rewrited partly.
2010-07-21 04:59:04 +04:00
pasdVn
d59cd7c2f2 [10233] Fixed check in SpellAuraHolder::HasMechanicMask
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-20 15:05:47 +04:00
Laise
d8c1374fcd [10232] Fix mechanic-related check, thanks to VladimirMangos 2010-07-20 13:20:35 +03:00
Laise
c384650af8 [10218] Restore trinket procs when no specific spell is defined for proc 2010-07-18 18:53:46 +03:00
VladimirMangos
15374bd626 [10214] Small final (as i think ;) ) fixes for restricted flight zone
* Fixed my horriable typo in 58600 effect code. Thanks to zergtmn for pointing to it.
* Remove redundent cast 45472 in 58600 effect code (it casted from 58601 already). Thanks to porteyoplait.
* Prevent restart 58600 debuf timer at temporary leave zone and return to it.
2010-07-18 01:13:48 +04:00
VladimirMangos
63ea8bbf4b [10210] Do unmount at expire restricted flight zone debuf if still in restricted zone/etc. 2010-07-17 21:42:09 +04:00
SilverIce
ea4afebff8 [10200] Correct function call sequence in possess aura handlers
also removed not needed ResetView call in dummy aura handler

(based on SilverIce's repo commit c3f02ed)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-17 02:52:52 +04:00
Laise
ae51168ffc [10199] Fix 33763 and ranks final heal and mana return on dispel and on expire 2010-07-16 21:35:00 +03:00
virusav
a27ecef96d [10195] Some gender dependent spells
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-15 05:32:46 +04:00
Laise
904ef55b4e [10189] Fix display of Interrupted message and fix channelled spells interrupting 2010-07-14 13:24:16 +03:00