Commit graph

314 commits

Author SHA1 Message Date
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
GriffonHeart
1f54ffd398 [7172] Implement area requirements for spell 54119.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-25 10:44:31 +03:00
VladimirMangos
521c8bc31b [7170] Implement special default skill levels for created DK character. 2009-01-25 10:02:15 +03:00
VladimirMangos
4dc06d6d9e [7168] Spell shift-link and command improvements.
* Support Htrade shift link (it created by client at click by crafting profession spell icon in spellbook)
  in spell comands.
* Support "all" second arg for .learn for learning not provided spell id but it's all ranks.
* Drop support range for .unlearn command but support instead "all" second arg for unlearn not specific spell id but it's all ranks.
* In .list auras output print spell names as shift links for better readable view.
* Add to beggining Chat.cpp lists all supported by commands shift-links (client generated and server-side)
2009-01-25 07:53:18 +03:00
VladimirMangos
df13468ee1 [7165] More strict checking for client casted spells.
Allow explictly cast character spell from client only if it non-passive and show in spellbook/etc base at server data.
2009-01-25 00:13:33 +03:00
ApoC
302dc70eab [7162] Converted some uint16 spellid parameteres to uint32. It can provide little speedup.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-24 18:42:14 +01:00
yad02
94d064be6f [7160] Implement (un-)learning skill level dependent spells at skill level change.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Some related cleanups using new functionality.
2009-01-24 12:43:42 +03:00
VladimirMangos
bbf8fd0742 Not store dependent spells in character_spell
* Mark spells learned in result character creating, another spell learning, skill grow,
  quest reward as dependent and not store its in `character_spell`.
* Prevent re-learning known spell in expected state
* Prevent re-learning low rank spell as active if higher rank known.
* New type of non-stacked ranked spells check: skill dependent spell bonuses.
* Activate (show propetly and cast if need) lesser spell rank
  for non-stackable in spellbooks spells at unlearn high rank
2009-01-24 12:03:43 +03:00
GriffonHeart
25b120877e [7154] Move allow player fly check to function.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-23 15:57:23 +03:00
freghar
11ed0e99a8 [7146] Trailing whitespace code cleanup
Signed-off-by: freghar <compmancz@gmail.com>
2009-01-22 18:10:16 +01:00
GriffonHeart
17916d3dc8 [7144] Implement DK specific way for talent points calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 06:35:10 +03:00
Energy
f26d6151c8 [7141] Implement heroic raid instance mode support.
* Heroic mode player amount for instances in DB. Can be used for any instances but added for heroic raid instance.
* Output transfer error at max playrs limit.
* FIXME notes ;) for raid required implementing store 2 reset time and do global reset for 2 modes. But currently raid have inmmap entry data
same reset time for both cases.
* Update instances list where mounts allowed.
* Simplify and fix code for SMSG_RAID_INSTANCE_INFO.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 03:27:59 +03:00
Butch3r
3adbf3e00f [7138] Prevent spam aura add in logs. Output only in detail mode.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 00:14:32 +03:00
VladimirMangos
6bc449d053 [7136] Check mount existance at loading not completed taxi path at login. 2009-01-21 19:41:26 +03:00
VladimirMangos
2b91a790bc [7133] Re-implement explicit spell discovery code.
* Replace reqClass by reqSkillVlaue field in `skill_discovery_template`
  and check expected skill points amount for specific reipe discovery.
* Add new `spell_loot_template` loot table for store item selection data for spells.
  At this moment for expclicit recipes discovery spells.
* Code cleanups.
2009-01-21 06:39:54 +03:00
VladimirMangos
9e590f7ceb [7114] Code cleanups.
Remove redundant `inline` for in-class function definitions.
Fixed float -> int implicit casts.
2009-01-19 15:13:57 +03:00
ApoC
be051a706c [7112] Fixed glyphs apply on character load.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-19 02:10:06 +01:00
VladimirMangos
64073f65c0 [7107] Output skill points (current, max, perm/temp bonus) for known skill in .lookup skill. 2009-01-18 22:18:13 +03:00
McBen
1d80a7a788 [7102] Fixed .showarea/,hodearea commands.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-18 05:07:39 +03:00