Commit Graph

222 Commits

Author SHA1 Message Date
megamage 31e71cef1b [7352] Fixed conditions in FillPlayersToBG to correctly kick group only when other team's selection pool is empty. Problem reported by balrok. Author: Triply
--HG--
branch : trunk
2009-02-27 12:56:48 -06:00
megamage adb19df474 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area. Author: VladimirMangos
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
      aura present at character, character race/gender.
    * Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
      zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
    * Old hardcoded lines for similar check removed from sources and required DB support for work now.

--HG--
branch : trunk
2009-02-27 12:53:27 -06:00
megamage 2dbe092d9f [7348] Remove hack code from IsDeathPersistentSpell. Author: VladimirMangos
Re-apply zone dependent auras at resurrection by triggering zone update for player.

--HG--
branch : trunk
2009-02-27 12:28:10 -06:00
megamage e2fa2e44b6 [7345] Use in most cases dynamic quest level as expected (player level for quests witl level 0) Author: VladimirMangos Original patch provided by NoFantasy.
--HG--
branch : trunk
2009-02-27 12:25:10 -06:00
megamage 0c0fe3185f [7340] Prevent standup at save in result unexpected packet send to client. Author: aerione_alt
--HG--
branch : trunk
2009-02-27 12:20:33 -06:00
megamage 472f897b0a [7336] Implemented new BattleGroundQueue invitation system. Now it supports premade group versus premade group matches.
Added 2 new config options - InvitationType and PremadeGroupWaitForMatch - you can find more info in default config file.
    This patch can cause crashes.

Author: Triply

[7338] Little cleanup in battleground queues code. Author: ApoC

--HG--
branch : trunk
2009-02-27 12:13:59 -06:00
megamage d3a6900667 *Merge.
--HG--
branch : trunk
2009-02-26 20:43:35 -06:00
megamage 85d5d94e71 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code. Author: VladimirMangos
* Move common code in appropriate functions.
    * Correct select speed and 2D/3D distance for creature/player walk/fly

--HG--
branch : trunk
2009-02-26 20:35:40 -06:00
megamage bf66375bc7 *Update active object code. By VladimirMangos.
--HG--
branch : trunk
2009-02-25 20:52:20 -06:00
megamage dadb464485 [7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character. Author: VladimirMangos and nos4r2zod.
--HG--
branch : trunk
2009-02-22 17:47:30 -06:00
megamage 107218fe44 *Merge.
--HG--
branch : trunk
2009-02-22 17:35:14 -06:00
Blaymoira f6a4d1233a *Not allow have ammo_pouch and a quiver equipped in same time. - by balrok
--HG--
branch : trunk
2009-02-22 11:03:03 +01:00
megamage bb9365f318 *A better fix of the last rev.
--HG--
branch : trunk
2009-02-20 12:41:55 -06:00
megamage 82dbe1ed5f *Do not learn lower rank talents when removing a high rank talents. This may fix the bug about talents resetting when log in.
--HG--
branch : trunk
2009-02-20 12:34:14 -06:00
megamage 1b587c0fe3 *Merge.
--HG--
branch : trunk
2009-02-20 12:05:58 -06:00
megamage eb3abf2556 *Fix a crash caused by summon_type_possess.
--HG--
branch : trunk
2009-02-19 18:30:03 -06:00
panaut0lordv 966b6a4a8d Fix build
--HG--
branch : trunk
2009-02-18 22:39:00 +01:00
megamage 31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
megamage 89ba43ef3e *Merge.
--HG--
branch : trunk
2009-02-17 21:54:48 -06:00
megamage be53cfe104 *Fix some bugs of map/grid. Hope this can fix some crashes (without introducing new crash)
--HG--
branch : trunk
2009-02-17 21:50:18 -06:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage 05ef0471c3 *Fix a crash bug caused by bindsight spells.
--HG--
branch : trunk
2009-02-17 18:07:09 -06:00
QAston eabb9b727b *Merge.
--HG--
branch : trunk
2009-02-17 18:16:51 +01:00
QAston 3c9d801eb2 Backed out changeset e85c3b6d551b
--HG--
branch : trunk
2009-02-17 16:41:45 +01:00
megamage 4eb963528b Speedup check in Player::HasQuestForItem and Player::HasQuestForGO, related cleanups. Author: VladimirMangos
--HG--
branch : trunk
2009-02-16 20:15:28 -06:00
megamage da6390f980 *Fix the crash bug when player log in.
--HG--
branch : trunk
2009-02-16 19:25:26 -06:00
megamage 00ba699d6f *Merge.
--HG--
branch : trunk
2009-02-16 19:04:31 -06:00
megamage bb75ff7b79 *Cleanup of charm/farsight code. Hope this can fix some crash bugs.
--HG--
branch : trunk
2009-02-15 17:33:36 -06:00
megamage 8cf512b59a [7279] Allow equipped items loading at relogin to arena map. Author: Lightguard
--HG--
branch : trunk
2009-02-15 12:01:23 -06:00
megamage 97ac3aba05 Implemented limit category check for item/gem at equip or gem inserting. Author: VladimirMangos
--HG--
branch : trunk
2009-02-15 11:58:27 -06:00
panaut0lordv 7eec37c0b5 Fly mounts fix.
--HG--
branch : trunk
2009-02-14 11:46:51 +01:00
megamage 59be8223e4 [7276] Rewrited fix for same faction arena matches
Added better Object-oriented calls to BattleGround::Reset()
    Added more checks to CreateBattleGround() method
    This commit doesn't fix anything

Author: Triply

--HG--
branch : trunk
2009-02-13 20:10:14 -06:00
megamage 096030e625 [7275] getbattlegroundqueueidfromlevel returns now bg-specific queueids
before this commit, queueids were staticaly given for
    9-19,20-29,30-39... but for instance alterac valley needs
    51-60,61-70,71-80.. this patch allows this,
    if you change the minlevel in battleground_template you also could make
    23-32,33-42.. levelranges
    not that we always use 10lvl-steps.. this is actually hardcoded..

Author: balrok

--HG--
branch : trunk
2009-02-13 20:07:49 -06:00
megamage 8eb1f455a1 [7269] Use enum type for battleground queue type ids, and related cleanups.
* renamed a variable to make the content of it more clear: type->arenaslot
    * renamed BattleGroundQueueTypeId-variables to bgQueueTypeId
      just to make it easier reading the code (cause there existed
      3 different names for this..)
    * renamed GetBattleGroundQueueId to GetBattleGroundQueueTypeId
      again this is just for better understanding
    * Renamed [GS]etQueueType and m_Queue_type
    * Renamed to [GS]etQueueId and m_QueueId

Author: balrok

--HG--
branch : trunk
2009-02-13 19:56:22 -06:00
megamage 6aee5fcbe7 *Merge.
--HG--
branch : trunk
2009-02-12 17:09:15 -06:00
QAston c4c92e27f2 *Prevent getting wrong values from default type conversion.
--HG--
branch : trunk
2009-02-12 20:37:48 +01:00
QAston dff4f92edd *Add one more RewChoiceItemId field in quest template (SQL and feature request by Brian).
--HG--
branch : trunk
2009-02-11 20:38:02 +01:00
QAston 40bf3b630a *Implement spellhaste mod for Channeled spells.
*Fix build with VCPP.

--HG--
branch : trunk
2009-02-11 20:10:00 +01:00
megamage 757037ce54 [7265] Move feral bonus get to struct ItemPrototype
Signed-off-by: DiSlord <dislord@nomail.com>

--HG--
branch : trunk
2009-02-11 11:54:16 -06:00
megamage 6e84a2f3a5 [7264] Use AP fields as signed integer
Signed-off-by: DiSlord <dislord@nomail.com>

--HG--
branch : trunk
2009-02-11 11:53:35 -06:00
megamage 848af42918 [7263] Fixed AP calculation in some cases
Fixed use AP dynamic mods (bonuses from stats)
    Apply ITEM_MOD_ATTACK_POWER for ranged AP
    Implement feral AP from weapon dps for druids

    Signed-off-by: DiSlord <dislord@nomail.com>

--HG--
branch : trunk
2009-02-11 11:51:17 -06:00
QAston 8012f78d00 *Small code cleanup, try to fix crash.
--HG--
branch : trunk
2009-02-11 15:04:27 +01:00
megamage 5881c6b91b [7261] Better check DB corrdinates for bg entry at player loading. By Vladimir.
--HG--
branch : trunk
2009-02-10 10:04:40 -06:00
megamage 029554d4e3 [7255] Allows saving characters in Battle Grounds.
* Now player can join to BG after logout during 5 minutes, if BG in progress.
    * All players after server crash or restart should appear at the battlemaster

Author: GriffonHeart

--HG--
branch : trunk
2009-02-10 01:16:16 -06:00
megamage 58374f87b4 [7254] Cleanups and batter checking in homebind/bgEntryPoint code.
* Load homebind data early in Player::LoadFromDB and use instead initital race points
      in cases need some safe point if current coordinate broken by some reason.
    * Store BG entry point in to WorldLocation and simplify calls.
    * Set bg entry point at GM teleports to battleground for correct
      auto-recall position at battleground end.

Author: VladimirMangos

--HG--
branch : trunk
2009-02-10 01:06:39 -06:00
megamage ba7a8cc836 [7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases. Author: VladimirMangos
--HG--
branch : trunk
2009-02-10 01:00:22 -06: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
megamage b8d4c24359 [7248] Check battlemaster_entry data at loading. Code cleanups. Author: zhenya
--HG--
branch : trunk
2009-02-09 20:09:03 -06:00
megamage 91356d97d5 [7246] Add data from 7242_01_mangos_spell_bonus_data.sql to mangos.sql as expected.
Also fix outdated comment
Author: VladimirMangos

--HG--
branch : trunk
2009-02-09 20:00:06 -06:00
megamage fd83d371ba [7243] Fixed spell 47883. Author: aerione_alt
(The author of 7242 is Reve. Sorry)

--HG--
branch : trunk
2009-02-09 19:57:25 -06:00