Commit Graph

107 Commits

Author SHA1 Message Date
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
417c7c8319 [7393] Implement access to client side holiday ids. Author: VladimirMangos
* src/game/GameEvent.* renamed to src/game/GameEventMgr.* for consistence
    * `game_event` now have new `holiday` field for store client side holiday id associated with game event
    * Added new enum HolidayIds with existed at this moment holiday ids.
    * New function "bool IsHolidayActive(HolidayIds id)" added accessabel from scripts for active holidays check.

--HG--
branch : trunk
2009-03-06 19:36:47 -06:00
megamage
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
megamage
8787c00ca3 *Disable charmed/possessed creature AI.
*Use general react states to replace charminfo react states.

--HG--
branch : trunk
2009-03-05 18:48:56 -06:00
megamage
b1677c901d [7362] Use IN_MILISECONDS where appropriate, other cleanups. Author: VladimirMangos
--HG--
branch : trunk
2009-03-02 16:53:50 -06:00
megamage
4cdb56a967 [7347] Prevent sql errors at GM-mode corpse save. Apply same chnages and for other pahsemask save part for consistense and safe. Author: VladimirMangos
--HG--
branch : trunk
2009-02-27 12:26:40 -06:00
megamage
d3a6900667 *Merge.
--HG--
branch : trunk
2009-02-26 20:43:35 -06:00
megamage
ee6418d92a *Update active object code.
--HG--
branch : trunk
2009-02-26 16:29:55 -06:00
megamage
ccde296fd3 *Fix some crash bugs.
--HG--
branch : trunk
2009-02-25 17:53:05 -06:00
megamage
5fda499266 *Merge.
--HG--
branch : trunk
2009-02-24 21:14:00 -06:00
megamage
fe5fa58275 *Try to fix some crash bug related to grid.
--HG--
branch : trunk
2009-02-24 20:05:29 -06:00
megamage
699bc588b8 [7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
    2) redundent includes
    3) wrong constructor :-part field initilization
    4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
    5) explicitly list not implemented achievement types.

    Also bugs fixed:
    1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
    2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
    3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.

--HG--
branch : trunk
2009-02-24 11:14:28 -06:00
megamage
5fe7b48037 *Merge.
--HG--
branch : trunk
2009-02-23 17:04:15 -06:00
megamage
34517a860f *More fix about move flag.
--HG--
branch : trunk
2009-02-23 13:14:04 -06:00
megamage
413d442fac [7306] Updated POI icons defines. Author: NoFantasy
--HG--
branch : trunk
2009-02-19 18:57:32 -06:00
megamage
e21b2c9baa *Implemented gameobjects and creatures grouping (pools of them)
*Groups (called pools) can be also member of any game event
Author: Neo2003

--HG--
branch : trunk
2009-02-19 18:44:20 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage
1ad4f8509c [7285] More code cleanups in static data structures use. Author: zhenya
--HG--
branch : trunk
2009-02-16 20:12:55 -06:00
megamage
319f70fb76 [7283] Use map for trainer spells for fast find data by spell id. Author: zhenya
--HG--
branch : trunk
2009-02-16 20:10:04 -06:00
megamage
19f8347a58 [7278] In case gossip flag use gossip menu instead quest menu as client expected. Author: NoFantasy <NoFantasy@getmangos.com>
--HG--
branch : trunk
2009-02-15 12:00:37 -06:00
QAston
14d85a183e *Make range check dependent from target.
--HG--
branch : trunk
2009-02-14 15:56:04 +01:00
megamage
6aee5fcbe7 *Merge.
--HG--
branch : trunk
2009-02-12 17:09:15 -06:00
megamage
2d2f433b4d *Merge.
--HG--
branch : trunk
2009-02-12 16:48:42 -06:00
QAston
c4fa6a5d54 *Allow creatures to have up to 8 spells in creature_template.
--HG--
branch : trunk
2009-02-11 22:59:02 +01:00
megamage
d696381f32 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
    * Use in functions and fields BattlegroundTypeId type instead uint32
    * Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
      Many bg have same raw values for type id and queue id but some can be affected by this bug:
      BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
    * Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
    * Remobe redundent for header itself includes for BG headers.
    * Use Auction location enum instead raw valus.
Author: VladimirMangos

--HG--
branch : trunk
2009-02-09 22:08:06 -06:00
Paradox
d230302b16 Replace tabs with spaces in more files.
--HG--
branch : trunk
2009-02-09 08:16:34 -05:00
Biglad
b0694d7e5e Fix exploit, dont allow possessed NPCs to gossip to player
--HG--
branch : trunk
2009-02-09 08:06:43 -05:00
megamage
4d008f2043 Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
2009-02-04 10:33:18 -06:00
megamage
adee7cab17 *Fix build.
--HG--
branch : trunk
2009-01-28 22:51:12 -06:00
megamage
53e646d230 *Clear combat flag when creature is created. This fix the bug that some creatures do not fight back. Thanks to tlexii for pointing out the bug.
--HG--
branch : trunk
2009-01-28 00:25:06 -06:00
megamage
6de869d8f6 *Fix the bug that event ai mobs sometimes chase victims even when polymorphed.
--HG--
branch : trunk
2009-01-28 00:01:52 -06:00
megamage
beb293383c *Add creature extra flag "immune to taunt" and "charmed ai".
*Fix the bug that creature still use its ai when charmed. Only creature with charmed ai flag can use its ai when charmed.

--HG--
branch : trunk
2009-01-27 15:23:26 -06:00
megamage
d69198732e *Merge.
--HG--
branch : trunk
2009-02-04 17:22:43 -06:00
megamage
df7499e056 *Merge.
--HG--
branch : trunk
2009-02-04 10:53:58 -06:00
Drahy
5dab980495 * Updated copyright notice for new year (2009) part 2
* Changed mangos website

--HG--
branch : trunk
2009-02-04 12:42:26 +01:00
Drahy
7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage
adfa5b0ab5 [7225] Correctly clear trainer and vendor data. Author: zhenya
--HG--
branch : trunk
2009-02-03 15:01:18 -06:00
megamage
5299225a8b [7220] Check creature spells data at server startup. Author: VladimirMangos
--HG--
branch : trunk
2009-02-02 09:53:01 -06:00
megamage
05c07aa74a [7214] Phase system continue development - Commands and fixes.
* Fixed creature/gameobject save from game (used in commands code only)
    * Implement .modify phase (for player), .npc setphase (for creature/pet), .gobject phase (for gameobjects) commands
      for set phasemask of selected object. In player/pet case temporary until in game phase switch/re-login/GM-mode change.
      In creature/gameobject case change saved in DB.
    * Add to .gps output phasemask value print. Allow use .gps command with creature/gameobject shift-link
      (work for objects loaded in game in command time).

Author: VladimirMangos

--HG--
branch : trunk
2009-02-01 16:46:57 -06:00
megamage
336e8501f0 *Update to Mangos 7208. Implement phase system.
--HG--
branch : trunk
2009-01-31 16:38:50 -06:00
megamage
b0bf621a13 *Merge.
--HG--
branch : trunk
2009-01-29 19:35:49 -06:00
megamage
68c0bcd069 *Update to Mangos 7125.
--HG--
branch : trunk
2009-01-20 19:59:43 -06:00
megamage
40e7dcb599 *Update to Mangos 7111.
--HG--
branch : trunk
2009-01-18 19:01:41 -06:00
megamage
8739ded05d *Merge.
--HG--
branch : trunk
2009-01-17 13:34:43 -06:00
megamage
f414ab1686 *Update flee and confuse movement.
--HG--
branch : trunk
2009-01-17 00:00:48 -06:00
megamage
fa2e6622ad *Merge.
--HG--
branch : trunk
2009-01-16 22:59:24 -06:00
megamage
ba4338783a *Fix Creature::FallGround. By Silver1ce.
--HG--
branch : trunk
2009-01-16 19:05:30 -06:00
megamage
90f30abd86 *Update to Trinity 843.
--HG--
branch : trunk
2009-01-12 11:02:18 -06:00
megamage
4b5bca4f0a *setActive(false) when creature dies.
*Fix some script crash bugs.

--HG--
branch : trunk
2009-01-10 10:43:57 -06:00