Commit graph

1708 commits

Author SHA1 Message Date
VladimirMangos
50dbfadcb3 [8158] Update playercreateinfo_action base at UDB data for this table.
* Some fixes added for used UDB data base at not applied old mangos sql update and drop some wrong data.
* Primary key added to avoid button duplicates for (race,class) pair.
* This update expected to fix recently problems with empty action bars for new created characters

Note: This sql update not affect existed characters.
2009-07-10 22:24:04 +04:00
VladimirMangos
104158d93d [8157] Fixes and some tables support finish for pleays pdumps.
* Restore mark character with duplicate for rename at login
* Restore save mail item_text data
* Finish implementaion for propertly load item_text data.
2009-07-10 06:39:38 +04:00
VladimirMangos
1b8ad033c5 [8156] Some mail show flags use. 2009-07-10 06:38:23 +04:00
VladimirMangos
02caaf3421 [8155] Move unneeded include from header. 2009-07-10 06:37:34 +04:00
ApoC
c703ce8bfd [8154] Export only needed method from TemporarySummon class instead of whole class.
Change suggested by Vladimir

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-09 13:11:52 +02:00
NetSky
394cf9264d [8153] Fixed some implicit float->int cast warnings.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-09 11:10:28 +04:00
ApoC
44e8c3374f [8152] Class TemporarySummon exported.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-09 04:16:05 +02:00
Win32
03926619d9 [8151] Fixed some format warnings and typos.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

SOme changes rewrited with using [8150]
2009-07-09 01:09:12 +04:00
VladimirMangos
e0ddcd6ead [8150] Provided short name for portable format specifier for size_t values 2009-07-09 00:26:57 +04:00
XTZGZoReX
8b82154988 [8149] Use formula instead hardcoded value for CENTER_GRID_CELL_ID calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-08 23:25:32 +04:00
yad02
d583fd7f54 [8148] Remove zthread.vcproj GUID references from mangosdVC80.sln & mangosdVC90.sln files
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-08 22:54:23 +04:00
VladimirMangos
3bfe549a2b [8147] Some fixes and cleanups in mind control and charmed code. Mind control stil not finished.
* Allow command to mind controlled unit attack target at client. Rename related flag to UNIT_FLAG_PLAYER_CONTROLLED.
* Move code for pet action bar remove at client side to new function Player::RemovePetActionBar
* Not allow cast spells with SPELL_AURA_MOD_POSSESS and SPELL_AURA_MOD_POSSESS_PET by non-players and simplify related code base at this.
2009-07-08 20:09:33 +04:00
ApoC
1ad013e25b [8146] Fixed handling of eventchance for CreatureEventAI.
Check event chance after timers advances othewise event is
not scheduled to next time period and event chance is again
checked on next AI update.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 23:01:28 +02:00
Ambal
2d25d7f8bc [8145] Use constant name instead not-safe explicit value.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-07 23:04:02 +04:00
ApoC
17d0cda637 [8144] Forgotten uninitialized value fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 19:42:10 +02:00
ApoC
4b4eb0a6d5 [8143] Fixed Aura::IsCritFromAbilityAura
* If not applied critical damage bonus don't clasify tick as critical.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 19:36:37 +02:00
ApoC
5d4b581009 [8142] Remade precast spell system to be more similar to trigger spell system.
* Removed runtime allocation of list
* Methods and defines from precast spell system and trigger system moved closer
  to each other

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 16:15:30 +02:00
QAston
42300153ce [8141] Comment fix.
I would like to also appology to QAston for not mentioned him in
my prev. commit (db13c2fe18ff3953851eaaf86922ee57510e556a) as patch author.
I am sorry.
ApoC

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 14:50:17 +02:00
ApoC
0f6d312e59 [8140] Fixed dummy spell proc for 31876 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 00:53:55 +02:00
ApoC
fccba20c9d [8139] Implemented aura SPELL_AURA_ABILITY_PERIODIC_CRIT(286).
This commit affects spells 49868, 58435, 63068, 63091, 63503,
64915, 64925.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-06 22:48:34 +02:00
VladimirMangos
c8bb0c75a3 [8138] Prevent stacking pet mind control auras. Thanks to NetSky for reset. 2009-07-07 00:13:39 +04:00
hunuza
38197b539f [8137] Init player display id + native display id on login.
* Temporary reset of display id on save no longer needed.
* Players always have the right model for their gender.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-07-06 18:18:01 +02:00
ApoC
84e46d76e3 [8136] Fixed aura refresh on modify stack by negative amount.
When decreasing stack amount of aura, aura should not be
refreshed to full time. This should only happen on increasing
stack.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-06 15:36:49 +02:00
VladimirMangos
5d8bd14d38 [8135] Cast quest rewarded spells after mark spell as completed.
Some spell have spell_area requirement for cast (for later re-apply)
2009-07-06 16:13:51 +04:00
VladimirMangos
ef6b3f978d [8134] Fixed typo in ACTION_T_MORPH_TO_ENTRY_OR_MODEL check. 2009-07-06 11:26:06 +04:00
ApoC
08f1c95874 [8133] Do not scale with level damage for SPELL_AURA_MOD_DECREASE_SPEED.
May be other auras will need to be excluded also (auras modify AP,
Armor ...) but this one is the most annoying :)

This commit should fix non-movable behavior after being hitted by some
NPC spell with slowing effect.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-06 03:30:31 +02:00
Lightguard
ac051d10e9 [8132] Use real caster in some cases in Spell::DoSpellHitOnUnit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-05 23:41:59 +04:00
Lightguard
6a574896f5 [8131] Some anti-cheating server side checks.
* Loot in ghost state
* Apply duplicate glyphs.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-05 23:06:58 +04:00
ApoC
61443d7583 [8130] Allow stacking spell 18820 with 1459 and ranks
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 20:54:08 +02:00
ApoC
a2d9467428 [8129] More work on spell 20243
* No need to loop over rest of auras if correct one found
* Fixed spell not applied 58567

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 20:08:44 +02:00
Thyros
de974e5537 [8128] Typos in typos fix [8120].
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-05 21:10:07 +04:00
ApoC
572c6d99a7 [8127] Fixed detection of spell 20243
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 19:08:35 +02:00
VladimirMangos
715470a898 [8126] Improvemets in player/pet/charter name checks.
* Implement new config options for minimal player/pet/charter name length (2 by default)
* Better error reporting at problems in names.
* Add check from max pet/charter name length (same as for player names at client side)
2009-07-05 20:30:33 +04:00
ApoC
60fe792866 [8125] Optimized spell cooldowns remove.
Traverse only active cooldowns instead of whole player spell map.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 17:36:10 +02:00
ApoC
f064ef9c49 [8124] Fixed removing cooldown of 23922 and ranks by 50227
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 17:36:06 +02:00
ApoC
2273f7abe0 [8123] Introduced new method Player::RemoveSpellCategoryCooldown(uint32,bool)
This method removes cooldown from all spells from given category
and optionaly sends update to player. By default update is not send.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 17:36:02 +02:00
ApoC
91e4d7324a [8122] Permit read-only acces to player's cooldowns via GetSpellCooldownMap()
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 17:35:51 +02:00
VladimirMangos
b4302d61e5 [8121] Cleanup and more safe code in Player::BuyItemFromVendor use.
* Move bag search by bag guid code to WorldSession::HandleBuyItemInSlotOpcode
* Really reject unexisted bag cases.
2009-07-05 17:45:45 +04:00
Thyros
c853c2e261 [8120] - Typo for Linux, thanks to win32. (cherry picked from commit 389894bcee8a60f7dd59baf06f4a75e5098e9a69)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-05 14:15:37 +04:00
VladimirMangos
8d2dab1093 [8119] Speedup code and prevent crash at pet stats reset in time owner not in world. 2009-07-05 13:58:16 +04:00
Lightguard
0e1d03baeb [8118] More diminishing returns for mage case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-04 23:29:42 +04:00
ApoC
24f13bdcb7 [8117] Fixed spell 6343 and ranks, now getting bonus from AP
signed-off-by: ApoC <apoc@nymfe.net>
2009-07-04 21:26:56 +02:00
VladimirMangos
9798dbe5e2 [8116] Fixed low ranks relearn bug, correctly show tlanes at command spell learn.
* Bug showup as paladin talents reset. Thanks to ApoC for reseach problem.
* Now at .learn command use for learn some talent this talent must correctly show as learned in talent dialog.
2009-07-04 23:06:35 +04:00
VladimirMangos
bc0397695c [8115] Replace table contecnt by expected data from mangos.sql
For finally fix problem with new crated characters in addition to [8107].
2009-07-04 21:36:16 +04:00
ApoC
cece592b5f [8114] Fixed uint16 to uint32 for spell id in SkillDiscoveryEntry
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-04 17:29:49 +02:00
m4cm4n
7c5f254012 [8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-04 12:51:15 +02:00
ApoC
d17a49f6dc [8112] Fixed proc conditions for 63156 and ranks
* Fixed proc spell flags.
* Fixed proc only on victim's certain level of HP.

signed-off-by: ApoC <apoc@nymfe.net>
2009-07-04 11:41:38 +02:00
ApoC
aab121fcb2 [8111] Implemented support for implicit specify owner when initializing stats for summoned pets.
* Speedup of summoning pets (no need to seach owner by guid)
* Fixed problem that summond pets from NPC had not initialized stats
  (pet was not in world in time of stat init thus owner was not found)

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-03 19:28:22 +02:00
Lightguard
06dcbce4ee [8110] Implement aura SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE (229).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-03 13:41:36 +04:00
Lightguard
b768bbb8ff [8109] Implement some more PvP aura duration limits.
Thanks for reseach to Alez.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-03 12:56:08 +04:00