Commit Graph

210 Commits

Author SHA1 Message Date
Kudlaty
2465ef00a2 Fix bug with going trough things on login. Thanks to Opterman and Nofantasy
--HG--
branch : trunk
2009-09-03 23:40:14 +02:00
megamage
85ab4599ee [FIX] Energy/Mana Regeneration By HiZed
--HG--
branch : trunk
2009-09-02 15:05:18 -05:00
megamage
d802cd3811 *More update about positions.
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite.

--HG--
branch : trunk
2009-08-29 23:20:16 -05:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
6de6557bf0 *Fix a crash caused by gm command .object move and so on
--HG--
branch : trunk
2009-08-28 14:19:14 -05:00
megamage
a4978bb90a *Add some crash log.
--HG--
branch : trunk
2009-08-26 19:35:20 -05:00
megamage
21af4cf832 *Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
2009-08-26 19:28:21 -05:00
megamage
285f3a60f4 *Do not reset map id in resetmap.
--HG--
branch : trunk
2009-08-25 19:22:45 -05:00
megamage
8cedad1a0f *Do not make getmapid virtual function to improve speed.
--HG--
branch : trunk
2009-08-25 11:42:18 -05:00
megamage
a029ae15e5 *Fix some summon vehicle spells.
--HG--
branch : trunk
2009-08-24 12:54:36 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
b35fe879ad *Some update of spell target selection.
--HG--
branch : trunk
2009-08-23 00:46:21 -05:00
megamage
db066046df *Do not always set faction in summonvehicle function.
--HG--
branch : trunk
2009-08-23 00:43:49 -05:00
megamage
6169483d0f *Set vehicle owner guid and faction in summonvehicle instead of spelleffecthandler.
--HG--
branch : trunk
2009-08-19 23:01:56 -05:00
megamage
c9ddf9258d *Do not assert !map for non-corpse worldobjects.
--HG--
branch : trunk
2009-08-13 17:02:17 -05:00
megamage
9cff946d8d *Add an assert in ~worldobject
--HG--
branch : trunk
2009-08-13 11:47:38 -05:00
megamage
7292420583 *Rewrite and simplify sendmessagetoset functions. This fixes the bug that player cannot see dummy aura is cancelled when puppet is far away.
--HG--
branch : trunk
2009-08-12 23:23:53 -05:00
megamage
92769d3ffe *first remove corpse from world then resetmap
--HG--
branch : trunk
2009-08-12 23:12:33 -05:00
megamage
a30e3b7bd3 *Fix a crash caused by addnpc command.
--HG--
branch : trunk
2009-08-12 13:03:44 -05:00
megamage
0f18e49052 *Add some asserts back.
--HG--
branch : trunk
2009-08-11 16:39:35 -05:00
megamage
962b88a381 *ResetMap for worldobjects when map is deleted.
--HG--
branch : trunk
2009-08-11 16:33:33 -05:00
megamage
9403ff03e7 *Only use m_isWorldObject to check if an object is in grid or world.
--HG--
branch : trunk
2009-08-11 16:14:45 -05:00
megamage
4267816fca *A temp fix of the crashes caused by corpses.
--HG--
branch : trunk
2009-08-11 15:40:43 -05:00
megamage
6cb0466eea *Assert !IsInWorld() in set map
--HG--
branch : trunk
2009-08-10 23:48:20 -05:00
megamage
d78c9b3925 *Assert !IsInWorld() in reset map
--HG--
branch : trunk
2009-08-10 23:47:47 -05:00
QAston
129f6ce6f0 *Remove unneeded assert.
--HG--
branch : trunk
2009-08-01 02:08:59 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
QAston
13758fcae1 *Fix per-caster aura state based on [8218] (Author: VladimirMangos;almost nothing left from original patch):
*Fixes all per caster aurastates instead of only conflagrate
*Adds a holder for aura state auras for speedup search
*Save some memory space by removing m_auraStateMask from aura class.

--HG--
branch : trunk
2009-07-30 17:16:56 +02:00
QAston
98a80ff518 *Backout some mangos stuff which is solved using better way in trinity.
--HG--
branch : trunk
2009-07-30 11:59:37 +02:00
QAston
bc4e279cbd Backed out changeset 7fab27a57ecc - mangos [8218]
--HG--
branch : trunk
2009-07-30 11:47:47 +02:00
megamage
7bd47f8827 [8225] Some fixes from 320 branch. Author: tomrus88
--HG--
branch : trunk
2009-07-30 10:26:15 +08:00
megamage
9bd41d0255 [8218] Final part of talent 17962 and ranks fixes. Author: VladimirMangos
* Correctly show per-caster aura state for cleitns.

--HG--
branch : trunk
2009-07-30 10:15:45 +08:00
Kudlaty
607dfaf8c9 Merge [SD2]
r1088 Add grid searcher class PlayerAtMinimumRangeAway and create ScriptedAI function GetPlayerAtMinimumRange that return player in grid with at least the defined range away from m_creature.
r1089 Remove no longer needed grid search code and use function instead. - skip
r1090 Rename and clarify function variables - skip
r1091 Add two new grid search functions to return list of creature and gameobject. Remove unused class.
r1092 Remove more grid search code in scripts and use functions instead.
r1093 Remove obsolete grid search class and rename new to a more consistent name.
r1094 Speed up functions GetCreature/GameObjectListWithEntryInGrid a bit

--HG--
branch : trunk
2009-07-24 05:27:49 +02:00
QAston
2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02:00
megamage
cb48363788 [8187] Remove %s prefix in BuildMonsterChat().
For cases where name of sender is expected to show in client chat (mainly emote texts), add %s to the text where name should display.

    Signed-off-by: NoFantasy <nofantasy@nf.no>

--HG--
branch : trunk
2009-07-20 11:53:26 +08:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
megamage
e405e6f9ed *Fix a crash caused by mailed item deconstructor.
--HG--
branch : trunk
2009-06-17 09:57:22 -05:00
megamage
d906ea05d6 *Add a crashlog before an assert.
--HG--
branch : trunk
2009-06-16 17:58:44 -05:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
megamage
85a50c7ce2 [8007] Do not create empty maps while sending packets. Author: Ambal
--HG--
branch : trunk
2009-06-14 10:06:01 -05:00
megamage
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
megamage
ee9c12b480 *Some fix of vehicles. Thanks to Seizerkiller.
--HG--
branch : trunk
2009-06-13 09:18:54 -05:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
3e2fd1a380 Backed out changeset: d111c6daf588
--HG--
branch : trunk
2009-06-05 17:44:27 -05:00
megamage
47a1477213 *Revert part of Mangos [7911] because it may causes client crash. Thanks to onkelz28.
--HG--
branch : trunk
2009-06-02 17:35:00 -05:00
megamage
11456447da [7929] Some fixes and optimizations for work with packet guids. Author: VladimirMangos
* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
    * At adding aboyher buffer content copy only until wpos (really writed to buffer data)
    * In appendPackGUID check buffer size before data write.

--HG--
branch : trunk
2009-06-01 12:15:43 -05:00
megamage
76e4dfe8dd *Store creatureData and goData for creatures and gos.
--HG--
branch : trunk
2009-05-31 21:04:04 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00