Commit graph

4950 commits

Author SHA1 Message Date
VladimirMangos
b022e398b7 [11499] Clarify quest giver object state after Player::AddQuest. 2011-05-17 01:18:27 +04:00
breakwater
7f957eb88e [11498] Allow stacking some paladin DoTs at target.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-17 00:54:11 +04:00
VladimirMangos
d111d1a4b3 [11497] Fixed another source of crash at accept quest from item.
OnQuestAccept script calls moved into Player::AddQuest before
remove/replace quest starting item.
Its still called only at quest accept ofc (questGiver object != NULL only in like case.
2011-05-17 00:42:07 +04:00
NoFantasy
4b00269ccc [11496] Add dummy aura effect (removal) of spell 12774
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-16 19:03:12 +02:00
VladimirMangos
6237c115a5 [11495] Implement damage taken reduce part of spell 20911, 25899. 2011-05-16 20:47:14 +04:00
VladimirMangos
575584ad9b [11494] Implement spell 1842 and similar. 2011-05-16 17:17:14 +04:00
zergtmn
d001ce2d2e [11493] Add comment for prev. commit 2011-05-16 02:28:57 +06:00
zergtmn
05cfb8d36b [11492] Fix possible crash at guardian pet unsummon 2011-05-16 01:59:04 +06:00
VladimirMangos
55cc1ea37f [11491] Step back to implicit ObjectGuid(uint64 const& guid) in wait code users updating.
Must be reverted with drop GetGUID() when code ready.
2011-05-15 23:37:01 +04:00
VladimirMangos
249fb836ca [11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid
Now safe allow this casts in like way after completed convertion to ObjectGuid use.
Also simplify code in result allowed auto cast to uint64.

Please _not_ add new uint64 storages (local and in structures) for guid values.
2011-05-15 22:04:57 +04:00
NoFantasy
ecdb435b1e [11489] Remove the old and custom UNIT_NPC_FLAG_GUARD for creatures.
Existing data moved to flags_extra field, with value CREATURE_FLAG_EXTRA_GUARD (0x400 / 1024).
Remove isGuard() from Unit class to a new IsGuard() function in Creature class.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-14 19:17:13 +02:00
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
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