Commit graph

719 commits

Author SHA1 Message Date
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
SilverIce
a0ea5cde4d [10186] Fixed visibility constant refresh problem with pet direct control spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-13 02:14:40 +04:00
Laise
beff2a145c [10185] fix auras adding to previously added holder 2010-07-12 20:29:26 +03:00
VladimirMangos
40c7356290 [10184] And tradition typos :( 2010-07-12 20:06:31 +04:00
VladimirMangos
6e3f51b1b6 [10182] Allow stacking some tracking bufs, and prevent stacking some other.
For example item 25548 buff expected to be allowed stacking
but spell 19885 not allowed.
2010-07-12 19:02:43 +04:00
NoFantasy
0a2ee023fb [10179] Add "missing" spells in commented form for Aura::TriggerSpell()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-11 12:37:41 +02:00
NoFantasy
081b98ff04 [10178] Clean up some comments and align/indent as done for similar spell code.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-11 11:33:09 +02:00
NoFantasy
b0c0b464ce [10177] Add custom code for triggered part of spell 39105
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-11 10:59:07 +02:00
VladimirMangos
695f0f1655 [10174] Fix special targeting for spells 812/9347. 2010-07-10 02:17:39 +04:00
QSOS
6fba66fded [10173] Fix infinity loop in 31884 spell code
Signed-off-by: Laise <fenrisse@gmail.com>
2010-07-09 22:48:03 +03:00
NoFantasy
617dd4391a [10168] Add dummy aura effect of spell 32045, 32051 and 32052.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-09 00:40:33 +02:00
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