Commit graph

513 commits

Author SHA1 Message Date
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
788cdf9b3a [7826] Avoid use GetDistance* that used slow sqrt call where possible, other related speedups. 2009-05-14 18:51:13 +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
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
VladimirMangos
167e8c86f6 Code style and cleanups in item equip checks. 2009-05-14 10:37:23 +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
tomrus88
5ab735d374 Merge commit 'origin/master' into 310 2009-05-10 21:46:26 +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
tomrus88
3c43e9dd52 Merge commit 'origin/master' into 310 2009-05-09 16:03:32 +04:00
tomrus88
5e26a2a152 Just a few renames. 2009-05-09 16:01:31 +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
tomrus88
b5548f9f12 Small fixes. 2009-05-08 18:09:53 +04:00
VladimirMangos
d739502fcc Fixed equipment set save problem after deleted recently added equipment set. 2009-05-08 17:48:59 +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
tomrus88
c9f5062955 Merge commit 'origin/master' into 310 2009-05-08 15:31:27 +04:00
tomrus88
930f3304de Fixed SMSG_PET_SPELLS opcode. 2009-05-08 15:30:39 +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
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
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
tomrus88
216b947002 Merge commit 'origin/master' into 310 2009-05-07 02:08:52 +04:00
tomrus88
908f41b031 Attempt to fix quests. Some other fixes. 2009-05-07 02:04:43 +04:00
tomrus88
2d61cc1e76 Fixed merge. 2009-05-06 11:11:07 +04:00
Elron
727268a4e8 [7786] Proper hostile zones marking for PvE servers.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-06 09:59:53 +04:00
tomrus88
6821c24268 Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-05-06 09:40:35 +04:00
VladimirMangos
75dda239d7 [7784] Skip distance to start taxi node in case node without coordinates and taxi flight started by spell. 2009-05-06 06:42:57 +04:00
ApoC
cf4884b03a [7781] Fixed typo in my prev. commit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 23:48:23 +02:00
ApoC
e8d8b1a888 [7780] Fixed Player::HasGuardianWithEntry()
Pets not contain in GUID entry but pet number so we need check
GetEntry() == entry

Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 23:38:19 +02:00
DonTomika
b27694f88b [7778] Implement honorable kill related achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS
* ACHIEVEMENT_CRITERIA_TYPE_HK_RACE

Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 22:27:45 +02:00
arrai
fefe56e3c5 [7776] Completed implementation of CMSG_SPELLCLICK
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
npc_spellclick_spells, otherwise you won't be able to use them
2009-05-05 18:58:58 +02:00
tomrus88
395670f05a Added missing talent points update at player/pet level change. 2009-05-05 17:25:52 +04:00
DonTomika
6e87802fa5 [7775] Implement duel related achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL
* ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-05 14:53:18 +04:00
DonTomika
f60df52dfc [7773] Implement some statistics only achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_QUEST_ABANDONED
* ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN
* ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-05 14:27:41 +04:00
tomrus88
e75e66063e Merge commit 'origin/master' into 310
Conflicts:
	src/game/UpdateData.cpp
2009-05-05 10:44:12 +04:00
tomrus88
7e938af972 Updated to latest PTR client build 9868. 2009-05-05 10:41:22 +04:00
AlexDereka
c9eb417515 [7760] Fixed my typo in prev commit. 2009-05-04 16:37:47 +04:00
AlexDereka
c81c5ab961 [7759] Fixed [7758] commit. 2009-05-04 16:17:52 +04:00
zhenya
b1bfdddeb2 [7758] Fixed gain reputation and xp reward between group mates in differents instances
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-04 14:45:23 +04:00
megamage
ebafe6a7b9 [7755] Allow mini-pet has been questgivers or gossip holders.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-04 12:07:04 +04:00
DonTomika
d351c09f9d [7753] Implement ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-04 06:42:30 +04:00
AlexDereka
da9f94637a [7746] Add const attribute to Player::SendInitialActionButtons. 2009-05-03 22:45:14 +04:00
AlexDereka
27fabf7ace [7745] Fixed gcc warnings. 2009-05-03 20:25:27 +04:00
tomrus88
335b32dbc3 Merge commit 'origin/master' into 310 2009-05-02 19:56:19 +04:00
tomrus88
b980e9ac59 Updated to 3.1.2.9855 client build, fixed quests, some work on monster movement. Not tested. 2009-05-02 19:41:00 +04:00
VladimirMangos
8e2a664fad [7740] More correct flags in trainer list data for profession ranks.
Note: this is not fix problem with gren show recently learned non-first rank of primary profession.

Thanks to Seizerkiller for help in reseach.
2009-05-01 04:02:10 +04:00
tomrus88
21a38a42d8 Merge commit 'origin/master' into 310 2009-04-30 13:55:38 +04:00
VladimirMangos
c05a531281 [7738] Use proper indent instead if() for() style. 2009-04-30 04:26:01 +04:00