Commit graph

719 commits

Author SHA1 Message Date
VladimirMangos
a32d68febd [10671] Convert some Unit owner/etc guids to ObjectGuid way. 2010-11-01 13:19:50 +03:00
VladimirMangos
f48e768a70 [10662] Implement partly item looting
* Not deleted normal item loot at first loot window close.
* Save current item loot content to DB for later continue looting.
* Cleanup spell effect SPELL_EFFECT_OPEN_LOCK check code
* Cleanup Player::AutoStoreLoot calls
2010-11-01 02:04:08 +03:00
VladimirMangos
691412d05c [10636] Implement server side check combo points req. for spell cast.
Thanks to nos4r2zod for problem research.
2010-10-21 15:00:56 +04:00
VladimirMangos
da07caba28 [10630] Convert Set(Get)ChannelObjectGuid to ObjectGuid way.
Also fix typo in debug output for prev. commit.
2010-10-20 11:19:47 +04:00
VladimirMangos
31c9efd219 [10629] Drop function GuidHigh2TypeId
Added ObjectGuid version Aura::GetCasterGuid()

But for prevent big problen with backporting AuraHolder
to mangos-0.12 in most cases still used old uint64 version
Aura::GetCasterGUID.

Recommended use new version where possible in clean way
as done for some cases in commit already.
2010-10-20 09:12:43 +04:00
VladimirMangos
c955941b55 [10627] Use ObjectGuid for player's selection and unit's target 2010-10-20 08:19:48 +04:00
DasBlub
61102e3b16 [10610] Renamed some functions from the Creature class
Also other classes have been affected, due to the use of search&replace.
This will probably break some patches and 3rd party libraries, so make sure to update them if required.
Thanks to Phille for the original idea and patch!
2010-10-14 22:07:04 +02:00
NoFantasy
2fe45365c0 [10600] Correct size of animprogress for GO Create()
Add a default define and use it instead of hard coded value.
Some additional minor corrections for transport GO's

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-10 13:27:25 +02:00
VladimirMangos
3d5298fbd7 [10584] Prevent lost aura connection with item at Aura::ReapplyAffectedPassiveAuras
Thanks to Lynx3d for research problem and testing.
2010-10-07 03:07:24 +04:00
Laise
6a492ce678 [10554] Fix wrong procs when spell hits with no damage 2010-09-28 15:42:11 +02:00
zergtmn
b0e89aa5da [10553] Two more cases where AURA_REMOVE_BY_EXPIRE mode can be used
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-27 11:48:52 +02:00
insider42
c2742dccc3 [10532] Aura SPELL_AURA_ALLOW_ONLY_ABILITY not prevent auto-attacks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-25 11:40:05 +04:00
darkstalker
3a8ad26a5e [10526] Implement server side global cooldown check.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also pet/controlled unit global cooldown code replaced by new placed in charmInfo structure.

Thanks to nos4r2zod for testing and gcd range check implement.
2010-09-24 06:07:26 +04:00
VladimirMangos
cb03e5a376 [10525] Add missing () to expressing for proper prio. 2010-09-24 04:20:07 +04:00
michalpolko
7337e0cd24 [10523] Fix proc from periodic crits
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-23 15:13:20 +02:00
Laise
daf7041231 [10522] Fix periodic procs - spells that require periodic healing to proc need to be defined in spell_proc_event with procEx PROC_EX_PERIODIC_POSITIVE, by default all procs without it are negative 2010-09-23 14:27:26 +02:00
VladimirMangos
b0edd807d7 [10513] Clear grid *Check/*Searcher clases use
* Check class considered have all info select  object in world from suggested but grid walker list in some grid.
  This also meaning that Check must always have focus object around that (and in same phase) fit objects must be.
* Searcher only must ask Check and know how from all objects fiting to Check select result object(s).

For this reason and for better compatibility removed first arg (searcher) form all Searcher classes.
Instead expected used Check::GetFocusObject() object if need ( by always need check and simolify Check classes
phase checked in Search classes). This also restore source code compatibilty in related lines with prev.client
version branches code.

* While focus object adding fixed possible wrong phase object selection at stealth detection and at corpse searches.
2010-09-22 06:25:21 +04:00
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