Commit graph

332 commits

Author SHA1 Message Date
VladimirMangos
b9326100ea [7360] Use defines instead harcoded item prototype array sizes. 2009-03-01 00:32:37 +03:00
Triply
a81d174288 [7353] Fixed problem with joining rated arena matches. Thanks to balrok for help.
Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 14:20:31 +01:00
Triply
0be003ac90 [7352] Fixed conditions in FillPlayersToBG to correctly kick group only when other team's selection pool is empty. Problem reported by balrok. Thx
Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 11:56:38 +01:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* 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.
2009-02-27 11:15:36 +03:00
VladimirMangos
9e7e374077 [7348] Remove hack code from IsDeathPersistentSpell.
Re-apply zone dependent auras at resurrection by triggering zone update for player.
2009-02-27 08:04:21 +03:00
VladimirMangos
64158d61b3 [7345] Use in most cases dynamic quest level as expected (player level for quests witl level 0)
Original patch provided by NoFantasy.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-27 01:25:20 +03:00
aerione_alt
ae1a404a04 [7340] Prevent standup at save in result unexpected packet send to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 04:44:13 +03:00
Triply
8f995ce904 [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.

Signed-off-by: Triply <triply@getmangos.com>
2009-02-25 19:21:31 +01:00
balrok
8c701f6287 [7326] Not allow have ammo_pouch and a quiver equipped in same time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 06:35:35 +03:00
VladimirMangos
218571a817 [7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character.
Original patch provided by nos4r2zod.
2009-02-22 06:19:37 +03:00
VladimirMangos
e7fc5e390b Speedup check in Player::HasQuestForItem and Player::HasQuestForGO, related cleanups. 2009-02-16 19:02:55 +03:00
zhenya
8dc3586889 [7285] More code cleanups in static data structures use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-16 17:10:24 +03:00
Lightguard
8d03a850c6 [7279] Allow equipped items loading at relogin to arena map.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-14 15:08:07 +03:00
VladimirMangos
b052777f71 Implemented limit category check for item/gem at equip or gem inserting. 2009-02-14 12:17:04 +03:00
Triply
1eadd9b7b4 [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
2009-02-13 14:47:10 +01:00
balrok
bd89568993 [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..
2009-02-13 10:32:21 +03:00
balrok
b75157946c [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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-12 09:00:28 +03:00
DiSlord
bb7d68347f [7265] Move feral bonus get to struct ItemPrototype
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-11 02:04:20 +03:00
DiSlord
4792d20b4e [7264] Use AP fields as signed integer
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-11 00:09:31 +03:00
DiSlord
14be347015 [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>
2009-02-10 21:24:45 +03:00
VladimirMangos
f58d1a179a [7261] Better check DB corrdinates for bg entry at player loading. 2009-02-10 10:14:31 +03:00
GriffonHeart
75121a5823 [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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-09 16:15:29 +03:00
VladimirMangos
8af53064eb [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.
2009-02-09 15:50:40 +03:00
VladimirMangos
e97c7ad9c5 [7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases. 2009-02-09 15:42:22 +03:00
VladimirMangos
5a4358dda9 [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.
2009-02-08 11:05:11 +03:00
zhenya
c5f20ff9a9 [7248] Check battlemaster_entry data at loading. Code cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-08 04:22:46 +03:00
VladimirMangos
30c1b87669 [7246] Add data from 7242_01_mangos_spell_bonus_data.sql to mangos.sql as expected.
Also fix outdated comment
2009-02-07 21:23:23 +03:00
aerione_alt
d767de4b8d [7243] Fixed spell 47883.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:15:05 +01:00
ApoC
7d3eac7f5a [7241] Breath time extended to 3.0.x values.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 14:55:01 +01:00
VladimirMangos
5e2553ff7e [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
2009-02-07 10:34:11 +03:00
VladimirMangos
7d63f4ce02 Fixes and cleanups in loot code.
* Move not-normal loot tables generation in single place (Loot::FillLoot function) for group and non group case.
* Simplify LootView code.
2009-02-07 10:34:02 +03:00
VladimirMangos
7dffae89da [7236] Prevent lost spells dependent from skills learned before non-dependent spell loading from DB.
For example spell 2764 will correctly show in spellbook after re-login.
2009-02-07 02:47:57 +03:00
VladimirMangos
cb0ebde926 [7234] Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 07:57:45 +03:00
VladimirMangos
c98726ea3c Fixed pahse seelction for gameobject/creature spawn for GM-mode without phase auras. 2009-02-06 06:01:47 +03:00
VladimirMangos
f94377622e Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 06:00:01 +03:00
nugu100
160777848a [7228] Implement empty bag swap with equipped non-empty bag with items exchange.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

More early checks and proper swap bank bags in patch.
Correct error messages in fail case.
2009-02-05 00:36:27 +03:00
VladimirMangos
fdd8176d74 [7227] Implement prismatic sockets. Related code cleanups.
Big thanks to TOM_RUS for help in reseach!
2009-02-04 02:09:46 +03:00
VladimirMangos
2c7216ac8c [7226] Avoid 2 mQuestStatus[quest_id] calls from AddQuest code for speed and possible aliasing problems.
Original patch provided by zhenya.
2009-02-03 02:19:40 +03:00
DiSlord
14a50bfce9 Add custom chance for some spells in 16180 and ranks (added in 308)
Show enchant id in error log

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 19:41:42 +03:00
VladimirMangos
aa24bd836e [7207] Phase system development continue for DB/in_game objects
* Store phase mask for creatures/gameobjects/corpse in DB
* Propertly set phase for summoned creatures/gameobjects/pets/corpses/spell related dynobjects
* Select proper phase for spawned creature/gameobjects and save it in DB

TODO: in game commands.
2009-01-31 06:11:50 +03:00
VladimirMangos
b5da610388 Phase system development continue.
* Use WorldObject phase mask field instead explicit aura scan. This allow have phase for any world objects.
* Add phase checks to packet broadcasters/object searchers. This let correctly work say/yell/area
  and multi/random target spells/aggro assistance in phased areas or target selection.
* In GM-mode character presense (see and visible) in all phases except normal visibility efects including GM-visibility.

TODO: summoned objects phase set base at owner phase, load phase mask for creatures/gameobjects from DB, in game commands.
2009-01-31 06:06:01 +03:00
VladimirMangos
a1b5c3cb02 Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures)
Better gameobject barber chairs check at loading.
2009-01-31 05:55:10 +03:00
VladimirMangos
430c634fd3 [7195] Implement SPELL_AURA_PHASE (261) and basics of phases system work (for player/creatures/pets only) 2009-01-27 19:17:52 +03:00
ApoC
b27fbe8e4e [7192] Fixed glyph opening order for lvl 30 and 50.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-27 13:42:37 +01:00
VladimirMangos
8292567376 [7191] Some command related fixes.
* Allow use spell shift-link in .aura and .unaura commands
* Drop commented code and update .reset level command for support DK case.
  Also command for other classes will reset leve not to 1 but to config starting level value
2009-01-27 03:31:57 +03:00
VladimirMangos
be64293da3 [7182] Finally remove vanity pet slots related code. Vanity pets stored as learned spells. 2009-01-25 21:59:41 +03:00
ApoC
5aa204958c [7179] Fixed build at Unix/Linux. 2009-01-25 20:29:56 +03:00
VladimirMangos
d8355f27f5 [7178] Fixed character save fail at spell save in special case.
Case description: Spell save fail at attempt save into `character_spell` "new" spell loaded from DB
with exactly same settings after it learned from spell cast triggered by loading another spell from DB.
Reapeatable for shamans with known talent 16268.

Also speedup code with remove redundent Player::_removeSpell function.
2009-01-25 19:40:03 +03:00
Gorlum13
4e72f3bb33 [7174] Implement new option GM.Visible for set original GM visibility state at login.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-25 16:26:32 +03:00
VladimirMangos
939ef7612d [7173] Some fixes for resent spell learn/unlearn system changes.
* Fixed profession unlearn using skill unlearn button in skill list
* Update action bar to spell low rank at unlearn spell only for .unlearn command.
  This will avoid show unexpected "Learned spell" chat message for low rank at unlearing
  high rank and at all ranks unlearning.
2009-01-25 16:26:10 +03:00