Commit graph

516 commits

Author SHA1 Message Date
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
Trazom
dba73b611d [7737] Implement ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE.
Zone dependent achievement criteria required DB support.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-30 03:07:05 +04:00
freghar
b22b603c0e [7736] Do not cast Deserter debuff at gamemaster
Signed-off-by: freghar <compmancz@gmail.com>
2009-04-29 22:42:59 +02:00
DiSlord
57fce910e0 [7735] Not apply enchant mods from broken item (but allow set it duration)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-30 00:38:00 +04:00
tomrus88
d4323e0071 Merge commit 'origin/master' into 310
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Player.cpp
2009-04-29 11:51:15 +04:00
VladimirMangos
512c015dc2 [7731] Some code cleanups, warrning fixes. 2009-04-29 04:03:59 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
tomrus88
950a4bf13f Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-04-28 19:08:53 +04:00
VladimirMangos
5b9e46edea [7728] Use correct loot_type values in data sent to client instead long time existed hacks. Code cleanups.
Thanks to Seizerkiller and TOM_RUS for help in reseach.
2009-04-28 01:43:16 +04:00
AlexDereka
d74cdadc54 [7718] Fix my typo in [7716] commit. 2009-04-26 20:14:15 +04:00
AlexDereka
c9d51a6dc7 [7716] Fixed some typos and possible crashes. 2009-04-26 18:49:07 +04:00
tomrus88
55d6fbe3cb Merge commit 'origin/master' into 310 2009-04-25 17:24:05 +04:00
DonTomika
adf9eb942d [7700] Implement ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 00:09:28 +04:00
tomrus88
a9e148edac Merge commit 'origin/master' into 310
Conflicts:
	src/game/AchievementMgr.cpp
	src/game/BattleGroundHandler.cpp
	src/game/CreatureEventAIMgr.cpp
	src/game/DBCStructure.h
	src/game/Player.cpp
	src/game/Spell.cpp
	src/shared/revision_nr.h
2009-04-21 15:20:45 +04:00
VladimirMangos
35970244e5 [7692] Implement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE and reimplement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS.
Also correctly set this criteria at login.
2009-04-20 23:16:07 +04:00
VladimirMangos
fc0e1ecdf1 [7690] Move GetCreature/GetGameobject to class Map.
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
VladimirMangos
f4adf83cd7 [7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange. 2009-04-19 22:54:40 +04:00
tomrus88
66f554f74d Merge 'master' into 310
Please enter the commit message for your changes. Lines starting
2009-04-18 17:21:29 +04:00
tomrus88
3423b5dbb2 Fixed MSG_PVP_LOG_DATA. Players should be teleported to nearest GY instead of homebind location (by EvilstaR). 2009-04-18 17:11:57 +04:00
VladimirMangos
e94c6755d0 [7684] Resolve possible conflict in summon property enum type and enum names (currently commented) 2009-04-18 12:44:19 +04:00
Trazom
6c62fe750c [7683] Fixed update ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST for daily quests.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-18 00:10:59 +04:00
VladimirMangos
3e4b31debb [7673] Fixed pet spell cooldown values send in Player::PetSpellInitialize to client. 2009-04-15 11:49:42 +04:00
tomrus88
9256d68882 Small update. Should work with live 3.1.0.9767 client 2009-04-14 16:36:06 +04:00
tomrus88
d6f6272f8c Merge branch 'master' into 310 2009-04-14 15:54:43 +04:00
VladimirMangos
2289ee6b30 [7669] Some lost commented code patch for currencies trading item move to empty slot.
In fact it not change anything except GM item created trade:
no currency items currently that not bind at picked up.
2009-04-14 13:59:37 +04:00
tomrus88
9b20869a32 Merge branch 'master' into 310
Conflicts:
	src/game/Player.cpp
2009-04-12 14:37:33 +04:00
Trazom
5c660c844f [7653] Implement ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE
Correct complete if ACHIEVEMENT_FLAG_SUMM set

Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:49:17 +04:00
DiSlord
1a55952fa0 Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:48:42 +04:00
DiSlord
1bf2138948 [7651] Fixed some cases with unexpected fatigue bar show for player at transport.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-12 01:05:50 +04:00
DiSlord
c4b2e3f67c [7649] Fix resilience damage reduction coefficients changed after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-11 22:18:57 +04:00
VladimirMangos
199c09640d [7648] Resolve problems with expected fall damage at near teleport.
Move near teleport landing code to WorldSession::HandleMoveTeleportAck.
This make Player::TeleportTo code working in same way for both far/near teleports.
Move mSemaphoreTeleport from WorldObject to Player and merge with DoNotMove (using 2 fields for far/near teleport flag).
Skip movement packets until landing confirmation for near teleport from client.
2009-04-11 11:06:30 +04:00
VladimirMangos
eb198f8239 [7645] Fixed problems wit temporary unsummoned pets and cleanup code.
* Save temporary unsummoned pet to current slot (instead non_in_slot mode) and
  prevent save as current pet summoned while temporay unsummon (arena)
* Prevent overwrite temporary summoned pet data
* At player loading set temporary unsummoned pet data instead pet loading
  if pet expected to be temporary unsummoned in current player state (loading in taxi flight/etc)
* Restore proper pet at arena leave and unsummon in arena summoned.
2009-04-11 08:46:48 +04:00
VladimirMangos
263bf2ab22 [7644] Fixed pet slot values using in pet save.
Problem exist from client version switch when stable slot amount changed.
In result this has been source problems with stable use (3-4 slots) and possible pet lost in some cases
or "not save state" for summoned pets.
Use enums to avoid repeating problem, use more safe value for not-in-slot save (for summoned pets)
Fixed data preparing for MSG_LIST_STABLED_PETS.
2009-04-10 09:02:04 +04:00
tomrus88
781d9ca211 Replaced hardcoded value with define 2009-04-08 14:53:42 +04:00
tomrus88
14e9afa46f Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
2009-04-07 13:22:10 +04:00
Triply
060203749c [7630] Implement MSG_BATTLEGROUND_PLAYER_POSITIONS sending for AB and AV battleground.
Corrected some comments

Signed-off-by: Triply <triply@getmangos.com>
2009-04-07 09:37:24 +02:00
rastikzzz
e95ba2814d [7626] Fixed: Typo in InitStatsForLevel
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-06 14:41:44 +04:00
tomrus88
2a8776e567 Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
2009-04-04 23:25:57 +04:00
NoFantasy
02247d411b [7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-04 03:06:02 +04:00
tomrus88
bd06497546 Removed trailing whitespaces 2009-04-03 21:18:58 +04:00
tomrus88
17d86309fa Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
2009-04-03 11:28:51 +04:00
VladimirMangos
be374379de [7600] Apply at far teleport AURA_INTERRUPT_FLAG_MOVE and AURA_INTERRUPT_FLAG_TURNING in simlar to near teleport case. 2009-04-02 03:22:20 +04:00
arrai
1ec8e1f24d [7597] Fixed crash at stealing single target auras (54648 for example) 2009-04-01 23:11:25 +02:00
tomrus88
abae3cac91 Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
	src/shared/Database/SQLStorage.cpp
2009-03-30 15:01:04 +04:00
VladimirMangos
e65dc5747f [7575] Avoid unrelated skill search at ACHIEVEMENT_CRITERIA_TYPE_*_SKILL_LEVEL update 2009-03-28 23:45:23 +03:00
Trazom
f0ebade751 [7573] Implement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-28 22:40:38 +03:00
Lightguard
864b0c92b3 Implement initial known taxi nodes for DK.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

With some my rewrite.
2009-03-28 21:12:48 +03:00
DiSlord
bdf6667db8 [7566] Fix shield block value pct mod use (apply it on strength bonus also)
Signed-off-by: DiSlord <DiSlord@nomail.com>
2009-03-28 13:35:29 +03:00