Commit graph

594 commits

Author SHA1 Message Date
VladimirMangos
a9af7f2b1c Use reset time for normal/heroic from new DBC. Improve basic support for raid difficalties. 2009-10-06 02:12:02 +04:00
tomrus88
2964f399c7 Merge commit 'origin/master' into 320 2009-10-03 11:04:30 +04:00
VladimirMangos
e167a567d5 [8583] Prevent crash at casting DK spells by non-DK characters. 2009-10-02 21:55:53 +04:00
VladimirMangos
59befa2e0e Merge branch 'master' into 320 2009-10-02 19:09:06 +04:00
VladimirMangos
2e2d1013d4 [8581] Implement downgrade armor proficiency for items with scaled stats.
Original patch provided by Antonio593.
2009-10-02 04:46:24 +04:00
XTZGZoReX
63897d56d7 Move visibility update functions to more appropriate classes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-01 19:01:42 +04:00
VladimirMangos
1a3e8ca4d0 [8572] Add active repeatable non-daily quest in quest book at character loading also.
This fix bug with have like quest started and impossibility see and abort it.
2009-09-30 19:44:56 +04:00
VladimirMangos
47bf1dbce6 [8571] Avoid use ^ bitmask operation for bool values compare in general.
Also drop HandleSet32Bit logn unused and wrong coded chat command code.
2009-09-30 19:39:44 +04:00
hunuza
302afbc40f Allow weapon procs in druid shapeshifts.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-27 12:24:34 +02:00
tomrus88
3f33946d6a Update to latest client build 10505.
Fixed CMSG_AUCTION_SELL_ITEM.
Fixed CMSG_BUY_PETITION.
Some other fixes.
2009-09-26 19:40:14 +04:00
SilverIce
44ea1ee3e3 [8535] Correctly show spell sharges/stack amount
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-26 19:20:02 +04:00
NoFantasy
94b0650693 [8533] Not remove timed quest and correctly fail when time runs out.
Add function to remove timed quest instead of direct access to set.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-26 19:20:00 +04:00
Antonio593
e9c38b03f4 [8532] Fixed situation where some items like 42947 were not giving spell power bonus
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-26 19:19:59 +04:00
SilverIce
b72fe466e1 [8535] Correctly show spell sharges/stack amount
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-25 19:56:53 +03:00
NoFantasy
38aac1a77a [8533] Not remove timed quest and correctly fail when time runs out.
Add function to remove timed quest instead of direct access to set.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-25 16:02:53 +02:00
Antonio593
1bf0678ebd [8532] Fixed situation where some items like 42947 were not giving spell power bonus
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-25 15:54:17 +03:00
hunuza
a092992030 Some BG changes that were introduced in 3.2.2.
Player can now only join 2 bg queues at a time.
There is a seperate level 80 bracket for AV.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-25 13:29:07 +02:00
tomrus88
258e19a4a3 Merge commit 'origin/master' into 320 2009-09-22 18:14:06 +04:00
Ambal
cfea99ea62 [8524] New cell search algorithm implemented. You can now choose different visibility distances on continents, in BG/Arenas and instances.
Please, update your config files and check new options:

Visibility.Distance.Continents    = 90
Visibility.Distance.Instances     = 120
Visibility.Distance.BGArenas      = 180

Thanks everyone involved in patch tests!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-21 23:25:29 +03:00
Shendor
4254580141 [8520] Limit telent 49182 and ranks triggering expected:wq runes cooldown case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-21 15:23:17 +04:00
VladimirMangos
1c59403b39 [8519] Use RuneType enum where appropriate and more explicit data for rune init. 2009-09-21 12:13:21 +04:00
NoFantasy
00cfea3b46 [8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-16 13:59:04 +02:00
tomrus88
b493c840e1 Merge commit 'origin/master' into 320
Conflicts:
	sql/mangos.sql
2009-09-16 01:35:50 +04:00
VladimirMangos
bd254e2848 [8501] Apply code style and cleanups to some Player functions. 2009-09-15 07:00:14 +04:00
tomrus88
2d86aa4535 Misc fixes. 2009-09-14 18:11:15 +04:00
VladimirMangos
7974e1ebcb Merge branch 'master' into 320 2009-09-10 05:46:08 +04:00
ApoC
71e736abc6 [8478] Removed dependency on getMSTime() for last mana use.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-06 01:40:22 +02:00
Trazom
dffa5d43bd [8477] Implemented "on demand" regeneration of power in Spell::CheckPower (limited to 500ms frequency).
Correctly set UNIT_FLAG2_REGENERATE_POWER to notify client to stop/start regen in bar.
thx. also for nos4r2zod

From original patch was removed usage of getMSTime() and rewrited this part.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-06 01:39:13 +02:00
balrok
bd30769dec [8475] fixed some gcc-warnings
all warnings from Wunused
and some from Wall

cause unused may be most interesting for some:
they were in following files:
src/game/Level2.cpp
src/game/Map.cpp
src/game/SpellAuras.cpp
src/game/Unit.cpp
src/mangosd/Master.cpp
but i guess mostly someone just fogot to remove this code

for some unsigned vs signed warnings i used:
ack "for.*int .*size\(\)" | ack -v uint

also note for coding:
if you do something like
    if( a && b || c)
just place parentheses around (a && b) && always will have
precedence over || but without parentheses this could be overseen
quite fast (at least that's my guess why gcc will warn for this)

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-09-05 13:47:47 +02:00
tomrus88
4a8431f581 Merge commit 'origin/master' into 320
Conflicts:
	src/game/DBCStructure.h
	src/game/DBCfmt.h
	src/game/MiscHandler.cpp
	src/game/ObjectMgr.cpp
2009-09-04 21:16:59 +04:00
AlexDereka
a65d3a1560 [8467] Fixed some typos. 2009-09-04 18:52:17 +04:00
sixsixnine
63e7c092f1 [8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases.
(cherry picked from commit 7efab7fd38c3a753e967648ca8ef1f2cdfbac76c)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

With some fixes and rewrites.
2009-09-04 02:16:17 +04:00
VladimirMangos
c8b717ab7d [8449] Deprecate healing/damage item mods and merge internal data in to spell power.
* Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE
  and drop support code.
* Merge healing/damage base spell bonus fields and function to spell power field/function.
2009-09-01 22:45:56 +04:00
Opterman
eec534f1f6 [8446] Update ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING only for real alive cases.
This fix problem with temporary "alive" cases for prist talent for example.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

* Use final damage for check
* Also fix CMSG_REPOP_REQUEST read warning spam.
2009-09-01 15:55:09 +04:00
tomrus88
77af8018e1 Fixed typo, account data saving should work now. 2009-08-29 16:03:30 +04:00
tomrus88
d26712c6ba Merge commit 'origin/master' into 320
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Opcodes.cpp
	src/game/WorldSession.h
2009-08-29 12:01:39 +04:00
VladimirMangos
5cf72882ad [8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data`
* Move its in sql update from `account_data` to new table.
* For client packets that can be send in loggined state or just after logout but assocualted
  with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT
* Store low guid for loggedin player or recently logout into WorldSession.
2009-08-29 11:26:57 +04:00
tomrus88
828c91a808 More misc fixes. 2009-08-29 02:45:37 +04:00
tomrus88
2015f21fa8 Even more fixes. 2009-08-29 00:50:34 +04:00
tomrus88
fdc20af337 Some fixes. 2009-08-28 22:33:52 +04:00
tomrus88
2d65ce8b87 Merge commit 'origin/master' into 320 2009-08-28 17:26:09 +04:00
VladimirMangos
e79a92cd3b [8431] Avoid unlearn class skills at unlearn spell learned at skill learn. 2009-08-28 11:39:40 +04:00
VladimirMangos
5d50bb16b8 [8426] Use upper/lower iterator pairs as result instead 2 function calls. 2009-08-27 10:56:20 +04:00
tomrus88
3882772658 Merge commit 'origin/master' into 320
Conflicts:
	src/game/Player.cpp
2009-08-27 01:54:04 +04:00
VladimirMangos
45dd7140b5 [8422] Implement far sight like spells work for long distance.
* Added basic infrastructure for visibility update in case difference player and current view point.
  Just for note: seletect additional arg way beacuse repeatable search object will slow but store pointer will not safe,
  so use middle case: get view point pointer early as possible at visibility updates.
* Implement dynamic object and creature activisation while it's target of far sight spell effect
* Use this for SPELL_AURA_BIND_SIGHT, SPELL_AURA_FAR_SIGHT and SPELL_EFFECT_ADD_FARSIGHT.
* Note2: some spyglass like spells let look _around_ at long distance, this hard implement in current grid loading system
  Without additional changes and not implemented (you will see empty area without creatures in likes case)

* Also fixed warning spam at CMSG_MOVE_SET_CAN_FLY_ACK receive by use proper packet sructure reading.
2009-08-26 08:30:40 +04:00
VladimirMangos
208c84556e [8416] Fixed problem with double cast form passives at loading.
* Drop learning form passives at form psell learning, and cast it explictly from code in all cases.
* Drop cast form passives at learning.
* Note: talents that have dependent form time passives still work in original way: learned and casted at learn if need.
* Drop hack for spell 24907 casting at form apply: it casted fines as result normal triggered effect in related form spell.

Original patch provided by nos4r2zod.
2009-08-25 08:45:49 +04:00
tomrus88
33149b8f04 Merge commit 'origin/master' into 320 2009-08-24 00:58:11 +04:00
Triply
efa24ced49 [8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:13:09 +02:00
tomrus88
935c0a44c2 Merge commit 'origin/master' into 320 2009-08-23 18:57:07 +04:00
Triply
38fa6b241c [8402] Optimalized guild_eventlog and guild_bank_eventlog loading from database.
Added config options to set count of eventlog records stored in DB.
Attached SQL files will DROP existing and create new tables. Make sure you create backup (if you need old data).
Renamed few variables in Guild class.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-21 09:42:21 +02:00