Commit graph

1291 commits

Author SHA1 Message Date
Naicisum
53699e1aa3 [7840] Fixed unexpected rounding in pet size scale calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-17 19:04:27 +04:00
VladimirMangos
1f2670facf [7839] Rafactoring player targeting code in chat command and related cleanups/improvments.
* New extractOptFirstArg function for easy get 2 args in case option playe name as first arg.
* New extractPlayerTarget function for get player pointer/guid/name for online/offline player base at provided name
  or if not provided by current seelction with error cases processing.
* Property apply mute/unmute in case use different character name from loggined currently for account.
* .reset commands can be used from console now
* .repairitems comamnd can be used from console now but only to online player.
2009-05-17 14:29:55 +04:00
VladimirMangos
122c9c5785 [7838] More fixes in pet's levelup spells.
* Fixed not updating levelup spells at warlock pet summon firsy time (overwriting by default original ranks in fact)
* Correctly upgrade/doungrade spell ranks in action bar.
* Fixed spell learning spam at warlock pet re-summon in some cases.

TODO: currently (before this commit and in it) PetSpellInitialize() called too oftern. Maybe possible cache update flag and do it one time somewhere in Pet::Update....
2009-05-16 17:15:45 +04:00
xILOSWag
8cf9dc035b [7837] Implement missed item enchant type (stat mana, stat health)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-16 12:35:43 +04:00
VladimirMangos
45b209df50 [7836] Fixes for distance range checks.
* ignore 0.0f min range limit (this correct case when 2 object overlapped)
* typo in CreatureEventAI::CanCast

Also use int32 for temporary store GetSessionDbLocaleIndex result.
2009-05-16 10:25:11 +04:00
VladimirMangos
7a7ee86f97 [7835] Store structures (with size = uint32) insteed pointer to structure in PetSpellMap. 2009-05-15 17:22:44 +04:00
VladimirMangos
6aacc45ace [7834] Mangos string loading code cleanups.
* Better integration creature event ai strings.
* Not inclide in checks as expected max mangos strings range value to range
2009-05-15 17:01:11 +04:00
VladimirMangos
a1f4549862 [7833] Implement levelup spells for non-hunter pets.
* Use less hacky way to prepare data in SpellMgr::LoadPetLevelupSpellMap.
* Fill data for all pet families including not hunter pets.
* Fixed bug with lost/unexpected learned spells for some hunter pet families.

Use less hackky way for
2009-05-15 06:26:19 +04:00
VladimirMangos
b722e75d90 [7832] Better check at petcreateinfo_spell loading for errors and redundend data. 2009-05-15 06:19:11 +04:00
VladimirMangos
e134b5383b [7831] Prevent have hunter pet with level greater player levels at level changes. Propertly set hunter pet xp values at level update. 2009-05-15 05:33:46 +04:00
byeolpyo
ac67ac8c28 [7830] Spell chain data for 54424 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 23:41:21 +04:00
VladimirMangos
8858aacfb0 [7829] Rename 3d (x,y,.. versions of IsWithinDist/IsWithinDist functions with adding 3d explict posfix to name for avoid wrong use. 2009-05-14 21:42:32 +04:00
VladimirMangos
42d74d811f [7828] Add 2d/3d versions for WorldObject::IsInRange(x,y,... and WorldObject::IsWithinDist(x,y,... 2009-05-14 20:55:06 +04:00
VladimirMangos
592db69c0c [7827] dd support 2d version for WorldObject::GetDistanceOrder. 2009-05-14 20:10:11 +04:00
VladimirMangos
788cdf9b3a [7826] Avoid use GetDistance* that used slow sqrt call where possible, other related speedups. 2009-05-14 18:51:13 +04:00
BombermaG
ff80f14d2d [7825] Fixed typo in comment and var. name.
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 12:36:14 +04:00
DiSlord
1f3210b0ca [7824] Implement use ArmorDamageModifier bonus for armor
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 12:06:47 +04:00
DiSlord
640d46ce1f [7823] Fix ScalingStatValue field size in item_template table.
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 11:49:06 +04:00
Foks
dbf1f4323b [7822] Avoid declined names form show in case disabled config option with russian client at non-russian realm.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 11:31:04 +04:00
KAPATEJIb
28c7c95b87 [7821] Fixed typo in comment and var. name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 10:45:44 +04:00
VladimirMangos
4edbdb02f6 [7820] Fixed typo in [7819] that not allow correct work non-scalling item stats. 2009-05-14 10:40:11 +04:00
DiSlord
bfe2e187a6 [7819] Correct use item ScalingStatValues data (ScalingStatValues.dbc):
- ScalingStatDistribution stats multiplier
 - Armor bonus from ssv
 - Damage from ssv
 - Feral AP from ssv
 - Feral AP from ssv dps bonus
Use item->StatsCount in apply mods
Not allow equip item if level > ScalingStatDistribution->maxlevel field

TODO find more info about ScalingStatValuesEntry->spellBonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 00:16:21 +04:00
DonTomika
fd71c2bd6f [7818] Implement SPELL_AURA_MOD_FACTION_REPUTATION_GAIN.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-13 23:34:53 +04:00
Brueggus
f81cc0bf6a [7817] Add missing sql-updates to mangos.sql (7776, 7777, 7782) (cherry picked from commit dd26ba3edf339277a94301aa10caf26d33aab576)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-13 17:27:10 +04:00
Ambal
ae52a1b782 [7816] ACE thread priority values verification.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-13 16:19:07 +04:00
VladimirMangos
803a815fa4 [7815] Apply mangos code style: Replace tabs by spaces in recent added code. 2009-05-13 15:48:23 +04:00
XTZGZoReX
938a1e4096 [7814] Fixed typo in loading of Visibility.Distance.Object.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-12 17:41:07 +04:00
AlexDereka
cf0e3c7a4b [7813] Fixed build x64 debug on win. 2009-05-12 13:49:21 +04:00
Derex
8b9b480c05 [7812] Fixed compile ACE aio in linux.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-11 18:53:01 +04:00
Ambal
a4eab7e9f2 [7811] do not reload already loaded map coordinats at runtime.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-11 13:01:56 +04:00
Ambal
2aff48cc5d [7810] Moved ZThread related code on ACE framework.
Remove ZThread source code from mangos.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-11 12:14:22 +04:00
VladimirMangos
f117ce3420 [7809] Replace repeating "remove cooldown and send update to client" code by function call. 2009-05-09 19:32:24 +04:00
Astellar
09046df744 [7808] Move corpse search code in function with template arg for class-check.
This let reuse code for other similar near corpse target selection spells.
Also provided currently not used class-checks for 2 spells

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-09 18:48:18 +04:00
VladimirMangos
1feff6365f [7807] Drop dead code after switch to 3.0.x. 2009-05-09 17:45:02 +04:00
NoFantasy
829649aac6 [7806] Defines for known gossip icon value cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-09 16:50:08 +04:00
Nezemnoy
00820846e9 [7805] Refactoring batleground rewards code for cleanup and useful state for custom reward reuse.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-09 16:20:13 +04:00
Foks
7204f83a55 [7804] Allow swap and move by bag slots equipped ammopouch and quiver
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-09 15:09:18 +04:00
VladimirMangos
3c057a92f5 [7803] Prevent ignore max money limit at use .modify money command. 2009-05-08 21:32:20 +04:00
VladimirMangos
fffaec6d71 [7802] Use more appropriate field types in character_achievement* tables. Better check data at loading. 2009-05-08 19:45:04 +04:00
VladimirMangos
f53d06ad70 [7801] Apply damage mods from scripts or target state not in DealDamage but in new function before send data to client.
* Fixed bug with health decrease (client side visual bug) at spell damage by target with AI::DamageTaken damage set to 0
* Fixed bug with ignore .die command and instant kill damage in some cases.
2009-05-08 17:07:40 +04:00
VladimirMangos
b9cd3ffd0d [7800] Small fixes for scripting case ActivateTaxiPathTo use:
* Allow wide mount model lookup in DBC data for script case
* Allow 0-coordinates node use in script case
2009-05-08 14:28:43 +04:00
VladimirMangos
943c76869d [7799] Use single function for SMSG_SPELLNONMELEEDAMAGELOG prepare. Merge comments, replace values by enums. 2009-05-08 12:42:58 +04:00
VladimirMangos
666b6f798e [7798] More Player::ActivateTaxiPathTo use improvements
* Provide more explicit way about spell that cast taxi flight if any
* Remove incorrect states instead error reporting in case non-taximaster flight start (cast/script)
* Remove mount_id arg from ActivateTaxiPathTo and implement support for 0 mount_id case (spell 32474)
* Implement spell 32474 (except finilize part)
* Provided Player::ActivateTaxiPathTo(uint32 taxi_path_id) function version for simplify one node to node paths use by id.
2009-05-08 01:15:53 +04:00
VladimirMangos
3989212ad1 [7797] Use DBC data for mount model selection in more cases.
* Use alt.team mount data for take player team model id if DB not provide own team creature id in spell taxi call case.
* Remove unddeded hacks for model ids from Spell::EffectSendTaxi
* Provide spell target for SPELL_EFFECT_SEND_TAXI for spell with target mode 0 for this effect.
2009-05-07 22:40:37 +04:00
VladimirMangos
a587590ab5 [7796] Implement .lookup taxinode and .go taxinode commands. 2009-05-07 19:37:14 +04:00
AlexDereka
3279b77b09 [7795] Added comments. 2009-05-07 13:39:32 +04:00
Astellar
55392c3417 [7794] Add DK pet type support for proper show it in client Pet tab.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-07 13:19:49 +04:00
DiSlord
b2d9faa1cf [7793] Add some comments to fields in Talent.dbc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-06 22:02:35 +04:00
DiSlord
f2c514e810 [7792] Fix one rogue spell AP bonus
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-05-06 19:18:09 +04:00
ApoC
ab170653fc [7791] Compile fix of [7789].
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-06 14:27:24 +02:00