Commit graph

1937 commits

Author SHA1 Message Date
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
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
balrok
57158e9185 [8457] display summoner to summoned at .namego command 2009-09-03 20:18:35 +02:00
VladimirMangos
e59eea4fb5 [8456] Implement area check for SPELL_ATTR_EX6_NOT_IN_RAID_INSTANCE
Base at hunuza reseach.
2009-09-02 23:10:37 +04:00
Triply
664112a738 [8455] Do not disband guild, if guild ranks are not defined for that guild, removed obsolete comment.
Do not allow to delete guild rank, when there are only 5 or less ranks defined.

Signed-off-by: Triply <triply@getmangos.com>
2009-09-02 20:58:05 +02:00
Lutik
ab9b738e54 [8454] Implement aura SPELL_AURA_MOD_TARGET_ARMOR_PCT.
This fix work stance 2457, talent 12284/13709 and ranks, partly talent 61154 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-02 18:48:05 +04:00
VladimirMangos
2e09244e57 [8453] Make more informative error output in case empty version tables. 2009-09-02 18:47:37 +04:00
hunuza
e2bfad97db [8452] Add describtion for two attributes flags.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-02 12:47:23 +02:00
VladimirMangos
69fbe1e82f [8451] Implement talent 47236 and ranks.
Added changes base at merge of patches suggested by pasdVn and Astellar.
2009-09-02 06:43:00 +04:00
arrai
9c5f85d309 [8450] Prevented using of plaintext passwords in sql queries 2009-09-02 02:03:42 +02: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
ksergik
8497b520ce [8448] Fixed loaded spell target position records in log.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-01 16:34:26 +04:00
VladimirMangos
747a53cb67 [8447] Small code cleanups in guild loading. 2009-09-01 15:56:09 +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
arrai
3b1b68595b [8445] Fixed redundant calculation of v and s on every login
The SRP-6 specifications clearly say, that v and s are only to be
calculated on registering a user and changing his password; calculating
them on every login is plain waste.
2009-09-01 02:42:50 +02:00
VladimirMangos
4d0088e7a9 [8444] Prevent spawn gameobjects with invalid displayid by command.
Also fix mangos string for not existed gameobejct entry.
2009-08-31 23:10:42 +04:00
NoFantasy
a9dea03e09 [8443] Implement use of UNIT_FLAG_OOC_NOT_ATTACKABLE for creature.
Creature with this flag will no longer be attackable by other creatures, and if by any reason it enter combat, flag is removed.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-31 16:46:19 +02:00
arrai
f7963d1791 [8442] Fixed displaying return button in mails 2009-08-30 19:46:52 +02:00
VladimirMangos
8a7b77c088 [8441] Implement check DBs versions (required_* fields) at mangosd/realmd loading.
* git_id updated to generate revision_sql.h file with required_* fields strings.
* mangosd/realmd changed to include header and check this strings at startup.
* mangosd/realmd will terminated if related strings not match in DB content.
  In most cases this meaning that not all expected sql updates applied.
  Current required_* field stored in DB output in error to help find what last sql updates applied.

IMPORTNAT NOTE for mangos devs: please update used git_id before adding next commits with sql updates!
2009-08-30 15:02:10 +04:00
VladimirMangos
c9f475dfa0 [8440] Reset cooldown for triggred spell 61848 before it casting.
This is second case simialr hack, maybe possible find more nice way for this...
2009-08-30 00:24:50 +04:00
win
4d413e4a87 [8439] Fixed counting loaded extra spell bonuses.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-29 23:37:02 +04:00
Fog
016dc29e5d [8438] Correctly update achievement at bank bag slot buy instead next login.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-29 23:31:56 +04:00