Commit graph

1708 commits

Author SHA1 Message Date
NoFantasy
c5684fa7ab [8508] Not assign boolean value to integer variable, expecting to always be 0.
Also renaming member variables.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-19 11:57:57 +02:00
NoFantasy
9b9873a074 [8507] Check amount of spawned pools before decrement to avoid unexpected result.
Also rename variable to more meaningful name.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-17 21:51:59 +02: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
NoFantasy
744c6eaac0 [8505] Set character spell 16857 active.
Applies to some characters upgraded from 2.x.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-16 11:05:42 +02:00
nos4r2zod
ac56f62684 [8504] Update old spell version to spell 21084 in some playercreate_* cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-16 12:48:34 +04:00
VladimirMangos
b8843ec4d6 [8503] Avoid classidy of seal triggred effects at targets as seal spells.
This fix problem with lost target seal buff at getting enamy seal debuff.
2009-09-16 11:55:12 +04:00
NoFantasy
2d5b9c9efb [8502] Disable quests related to specific game events at startup if event not active.
Also rename member boolean variable.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-15 11:42:39 +02:00
VladimirMangos
bd254e2848 [8501] Apply code style and cleanups to some Player functions. 2009-09-15 07:00:14 +04:00
Jolan
afe5c9aef8 [8500] Fixed long existed bug with vmaps unloading.
When order of coordinates has been updated for loading case, unloading part escape fixing in past.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-15 06:58:57 +04:00
NeatElves
139bceb6a0 [8499] Add data to spell_elixir for absent 3.x elixirs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-14 23:47:53 +04:00
dele
c45362a9fc [8498] Implement talent 53234 and ranks.
(cherry picked from commit 510b81f53bbe59beccbc113a802b3f9b1e669e3a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-14 12:20:48 +04:00
VladimirMangos
67d4335614 [8497] Fixes in talent 53563 work and other area auras spells.
* Support mutiply beacon buffs at same target (as will be in 3.2.x) in triggering part.
* Bonus heal caster expected original paladin, and used his heal bonuses, LoS not required for bonus heal.
* Fixed bug with not apply not-caster affected area spell (hostile area spell or talent 53563)
  to another caster with same area aura active. Correctly remove only specific caster area aura at expire.
* Not show area spell icon for telent 53563 at beacon for this aura.
* Allow stacking dummy auras from diff casters, check formal aura types for effect at add aura stacking check.
  Last important for area auars that can have SPELL_AURA_NONE in modifier data instead formal effect auars at caster.
2009-09-14 08:45:43 +04:00
VladimirMangos
50d426e72c [8496] Resolve some #include cycles and unsafe code.
* Common.h  -> Threading.h ->  Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
2009-09-14 05:59:57 +04:00
Fog
b276b05363 [8495] Add absent ; in sql update that can create problems in merged sql update sequence.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-13 22:19:50 +04:00
Ambal
cd8663972e [8494] Fixed typo in MovementHandler.cpp : GetPlayer()->Relocate() function was called twice.
Thanks to Wowka321 for hint.

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-13 20:45:51 +03:00
VladimirMangos
5fb608fec6 [8493] Avoid unexpected multiply error messages at wrong quest_template.RewSpell* 2009-09-13 20:50:35 +04:00
VladimirMangos
610703c14b [8492] Implement talent 53563.
Original patch suggested by Arthorius.
Added data in mangos_spell_check to remember requirement update code for 3.2.x support in future.
2009-09-12 11:04:03 +04:00
VladimirMangos
692f32c82a [8491] Add absent empty line to end of sql updates.
Thanks to mns for pointing to problem.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-12 04:17:25 +04:00
KAPATEJIb
e0c319ef33 [8490] Fix typo in constant name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-12 04:06:08 +04:00
SilverIce
91eb757e95 [8489] Fixed player visibility update in case view point different from player itself.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 22:37:25 +04:00
VladimirMangos
eae9619f5b [8488] Use more readable style format for spell_bonus_data data.
No real changes in data.
2009-09-11 19:57:48 +04:00
nos4r2zod
d91f2c2c35 [8487] Fixes in paladin seals and related spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 06:08:40 +04:00
nos4r2zod
53c96fc731 [8486] Fixed work some dispel effects that have 0 dispel charges in spell data when expect 1.
This fix work totem effect 52025 in poison part and some scripted and creatures spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 00:08:13 +04:00
yad02
b681b4f3f3 [8485] Ignore *.sln.cache file created at use msbuild command.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-10 08:24:37 +04:00
pasdVn
70df7c8e91 [8484] Fix priest spell 47585
* Move precast spell and add one more to Aura boosts for proper remove at cancel.
* Check in ispositivespell as positive to allow cancel in client.

(cherry picked from commit 6566ec2bbd3654921446b6522e9800ef835ffffe)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-10 07:31:51 +04:00
bobaz
e170ac3c91 [8483] Implement glyph 43361.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-10 07:06:35 +04:00
burned
af4c9750e3 [8482] New flasks for 3.x added to spell_elixir.
Signoff-by: VladimirMangos <vladimir@getmangos.com>
2009-09-10 05:25:28 +04:00
unknown
7837fd93b4 [8481] Convert some detected files to unix line ends. 2009-09-10 05:11:36 +04:00
VladimirMangos
cfacd7e696 [8480] Provided real-time update for guidl ranks rights.
Specially for guild bank tab access rights (including currently open tab case!)
Send roster broadcast for all online guild memebers at any rank edit and guild bank tab buy.
2009-09-07 05:41:31 +04:00
Triply
78420246bd [8479] Fixed showing guild member's level and guild member's last online time.
Thx to Apoc for reporting bug.

Signed-off-by: Triply <triply@getmangos.com>
2009-09-06 18:47:30 +02: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
VladimirMangos
7a2df3c309 [8476] Revert some recent cleanup changes, some other fixes and cleanups. 2009-09-05 22:09:37 +04: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
Triply
56ddf40d62 [8474] Allow to delete BattleGround objects when any of invited players didn't click to enter battle.
Rename m_TeamScores500disadvantage to m_TeamScores500Disadvantage, and optimize its update.
Patch is tested.

Signed-off-by: Triply <triply@getmangos.com>
2009-09-05 13:31:40 +02:00
Ambal
7db230df55 [8473] Fixed a memory leak in 8441.
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-05 13:45:10 +03:00
ApoC
d6e4fc2864 [8472] Fixed argument for KilledMonsterCredit call.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-05 03:24:43 +02:00
ApoC
2a4889e10c [8471] Little correction to prev. commit. Spell effect 90 seems to be kill credit but only for single person.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-05 03:13:35 +02:00
OPenaz
d4e468aa44 [8470] Implemented one more kill credit spell effect.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-05 02:48:05 +02:00
The_Game_Master
bf7c15a5a6 [8469] Fix possible garbage in character_spell after [8416]
Removed in sql update spell not expected to be listed in character_spell
long before [8416] as dependent, but reported as partly listed. So do cleanup.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-05 04:36:04 +04:00
VladimirMangos
b145659b31 [8468] Move TARGET_EFFECT_SELECT target selection to normal place for target modes.
* Make from TARGET_EFFECT_SELECT code normal Spell::SetTargetMap case
* In additional for old 0/TARGET_EFFECT_SELECT pairs call it in case coordinate targets.
2009-09-05 04:13:08 +04:00
AlexDereka
a65d3a1560 [8467] Fixed some typos. 2009-09-04 18:52:17 +04:00
Triply
d24fd20cc3 [8466] Applied mangos coding style for Guild code.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-04 15:40:01 +02:00
elecyb
bba20b92a5 [8465] Fixed exploit of z-axis described in http://getmangos.com/community/showthread.php?t=9652
Little code style clean up.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-04 14:10:09 +02:00
Wowka321
bb30afb6f3 [8464] Fixed guild_rank name and rights updates broken in recent guild loading optimization. Also fixed guild_bank_rights.
Patch provided by Wowka321. THX.

Signed-off-by: Triply <triply@getmangos.com>
2009-09-04 13:16:22 +02:00
XTZGZoReX
66ffd80ed2 [8463] Fixed race conditions in LockedQueue.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-04 10:36:14 +02:00
Athor
7f444189c6 [8462] Fix database table to allow emote id bigger than 255
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-04 02:33:24 +02:00
Opterman
26a104a05a [8461] Correcting buildUpdateValues for GAMEOBJECT_DYNAMIC flag.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-04 01:18:17 +02:00
VladimirMangos
62501d2e02 [8460] Use achievtment criteria data from table for ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL as expected. 2009-09-04 02:38:08 +04:00
VladimirMangos
3b40f8960a [8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon. 2009-09-04 02:25:56 +04:00