Commit graph

5988 commits

Author SHA1 Message Date
zergtmn
639cac83a3 [11488] Add ObjectGuid::operator !() for use as shorter form of IsEmpty() 2011-05-14 22:08:25 +06:00
SilverIce
7d6b52641b [11487] Fix WorldTimer code (previous code causes server time flow speed to be on ~ 1-2% slower than real time) 2011-05-14 16:59:21 +03:00
VladimirMangos
6833efe12e [11486] Revert recent changes in BattleGroundMgr::DeleteAllBattleGrounds
Reason added in comment to code line.
2011-05-14 17:09:49 +04:00
zergtmn
c6b5064725 [11485] Move mail opcode handlers to separate file 2011-05-14 17:57:23 +06:00
SeTM
7904e90a19 [11484] Fix typo in HandleSocketOpcode
Signed-off-by: zergtmn <zerg@myisp.com>
2011-05-14 16:54:29 +06:00
zergtmn
777ffe8dc2 [11483] Change postfix iterator increments to prefix where possible 2011-05-14 16:53:55 +06:00
zergtmn
4cfa51d799 [11482] Reorder some fields for better memory layout 2011-05-14 16:52:32 +06:00
SeTM
a0729866d3 [11481] Restore gems insert to sockets.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-14 02:29:23 +04:00
stfxpi
5b128243c5 [11480] Avoid use 2 random call in dummy 14537
For random generators use in same calculation 2 random roll calls can
expose internal dependences in pseudo-random generation algo
and in result generated values will not so random as expected.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-13 15:08:00 +04:00
VladimirMangos
cfcac0fa0c [11479] Check map enter for proper deep map in corpse enter case. 2011-05-13 13:30:44 +04:00
VladimirMangos
116b053be8 [11478] Prevent overwrite main target at spell cast check for TARGET_PET
I also not find cases when first effect (safe mostly case) need like overwrite.
If some pet related spells stop work after commit please report.
2011-05-12 21:51:41 +04:00
VladimirMangos
7e79c611ec [11477] Correctly unload scriptlib at errors.
This will prevent unexpected call some handlers
for "unloaded" sriptlib DLL.
2011-05-12 21:39:23 +04:00
VladimirMangos
8931b7ca11 [11476] Fixed possible build problem. 2011-05-12 14:10:37 +04:00
VladimirMangos
4dbcb424a9 [11475] Provide wrappers for set/get ObjectGuid in InstanceData as uint64 2011-05-12 14:00:14 +04:00
NoFantasy
94080a2d77 [11474] Adjust text of some log messages related to spell target
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-12 08:21:47 +02:00
Vinolentus
5c8797743a [11473] Avoid unexpected uint64->ObjectGuid convertion in ObjectGuid::GetString
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-12 09:32:49 +04:00
Xfurry
2355b0bfde [11472] Implement spells 23184/25041 periodic trigger code.
Also implement classes PlayerListSearcher and AnyPlayerInObjectRangeWithAuraCheck

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-12 00:09:04 +04:00
Xfurry
4bdf829064 [11471] Implement dummy effect 21147
Also simplify addThreatPercent but in same time avoid rounding in -100% case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-11 23:06:04 +04:00
VladimirMangos
719e298795 [11470] Final cleanup uint64 guid cases
Also drop logout player update fields cleanup that in any cases not saved.
2011-05-11 21:36:27 +04:00
breakwater
a2b6a6fde5 [11469] Fix unapply of SPELL_AURA_MOD_THREAT auras when caster dies or logs off
Signed-off-by: zergtmn <zerg@myisp.com>
2011-05-11 18:43:03 +06:00
VladimirMangos
5ff698f53a [11468] Finally remove all uses Object::GetGUID from core sources.
GetGUID() is now depricted function and will removed soon.
Still exist just for give time for update patches/scripts.
2011-05-11 01:47:34 +04:00
VladimirMangos
1e38db574a [11467] Reorder class Channel sections to default used in mangos 2011-05-10 22:50:46 +04:00
VladimirMangos
b8bb108757 [11466] Use ObjectGuid in Map::m_objectsStore 2011-05-10 22:25:06 +04:00
VladimirMangos
ef6a48fe03 [11465] non-ObjectGuid guids in random places.
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
2011-05-10 21:27:49 +04:00
VladimirMangos
a925db80fa [11464] Some item related guids convertion to ObjectGuids 2011-05-10 16:37:34 +04:00
TOM_RUS
4181b8f28b Added spell cast flags research. 2011-05-10 16:12:33 +04:00
Den
6e1988bfc7 [11463] Cleanup codestyle in PetHandler.cpp
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-10 13:10:45 +04:00
VladimirMangos
31c34a940d [11462] Missing ObjectGuids in spell code. 2011-05-10 13:05:39 +04:00
VladimirMangos
4989ffba9d [11461] Use ObjectGuid in GuardAI also... 2011-05-10 11:20:34 +04:00
VladimirMangos
b4f2e3d1a0 [11460] Use ObjectGuids in last missing cases in AI classes. 2011-05-10 11:06:26 +04:00
VladimirMangos
44f2c26389 [11459] More ObjectGuid using in Aura/SpellAuraHolder code.
Also fix build in PetAI code. Thanks to rsa for fix code.
2011-05-09 23:17:39 +04:00
VladimirMangos
151e5eae9c [11458] Non-item related uint64 guids replaced by ObjectGUids in Player.h
Also let ObjectAccessor::FindPlayer optimize empty guid case work.
2011-05-09 21:54:09 +04:00
VladimirMangos
1d781cd431 [11457] Use ObjectGuid way work with PLAYER_DUEL_ARBITER. 2011-05-09 20:40:21 +04:00
VladimirMangos
7318bb0864 [11456] Some ObejctGuid uses in Pet code. 2011-05-09 20:22:03 +04:00
VladimirMangos
51031c2d24 [11455] Use ObjectGuid in HashMapHolder 2011-05-09 20:04:32 +04:00
VladimirMangos
b647835469 [11454] Use ObjectGuid in class Loot 2011-05-09 19:17:38 +04:00
Den
706c97c943 [11453] Fixed tier 8 4p bonus affect work
Also small spells ordering fix in `spell_proc_event`.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 05:50:24 +04:00
stfxpi
0c33b7bedf [11452] Implement spell 14537 effects.
Also re-add in correct way sql update for prev. commit.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 05:30:46 +04:00
bwsrv
917e832fed [11451] Fixed proc talent 63156 and ranks from 6353 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 04:19:57 +04:00
Most_Mangos
ad4c234e04 [11450] Aloow stacking some warlock DoTs
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 03:03:03 +04:00
NoFantasy
fac122184f [11449] Correct script effect of spell 50218
Also for related copy weapon/copy offhand weapon

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-09 00:06:30 +02:00
VladimirMangos
a4e91c3593 [11448] Fixed typo as source for recent crashes at quest start.
Also more stricjed typecheck for Object::isType arg value.
2011-05-09 01:21:24 +04:00
NoFantasy
8ee769a3cd [11447] Make SPELL_AURA_MIRROR_IMAGE work also for TARGET_SCRIPT
Not the best solution though, and should figure out a more nice way to deal with it.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 23:05:38 +02:00
VladimirMangos
605fb79847 [11446] Reimplement corpse enter to instance.
* Resurrect player _before_ enter to instance with corpse
* In case corpse in more deep instance teleport to corpse instance inner entrance.
* If by some reason player can't enter to corpse instance it will just resurrected before entrance.

Original patch and research done by Den.
2011-05-09 00:58:42 +04:00
NoFantasy
6d28c7dfd0 [11445] Correct a possible crash, if caster of aura has disconnected after aura applied
A small code adjustment in addition, no need for caster at aura remove.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 19:48:40 +02:00
NoFantasy
b62c7f17f0 [11444] Replace some poo with good shit, improvements related to [11443]
Thanks Zergtmn!

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 19:21:10 +02:00
NoFantasy
4c3b61d4f5 [11443] Implement SPELL_AURA_MIRROR_IMAGE (247) and related receive/reply packets
Inspired by different patches posted in forum, thanks guys for the help it was :D

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 18:58:01 +02:00
Den
d98b9b9670 [11442] Cleanup codestyle in WorldSocketMgr.cpp & WorldSocketMgr.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-08 20:02:04 +04:00
zergtmn
d0a0479749 [11441] Add positiveness detection for SPELL_AURA_MOD_RESISTANCE auras 2011-05-08 15:49:42 +06:00
Den
0bc434c16f [11440] Restore itemset 650 4p bonus affect work
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-08 06:53:11 +04:00