Commit graph

2531 commits

Author SHA1 Message Date
Astellar
0c78bfba33 [8418] Implement work talent 47193.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-25 15:32:22 +04:00
OPenaz
c2f8a0ff7d [8417] Allow work some guardian summon spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-25 13:58:13 +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
VladimirMangos
bee8a0ddce [8415] Implement --enable-builtin-ace option for explicit select builtin/system ACE.
* --enable-builtin-ace (default) set use builting in mangos sources ACE version build and use
* --disable-builtin-ace set use installed in system ACE version (if any) or
  error if no system version installed. This let easy use system version of ACE
  if it prefered by some reasons (for example 5.5.2 ACE package at 6.x FreeBSD)
* This also fix proper detection Stack_Trace.h existance in both cases.

More proper header existance check base at patch suggested by Plaes.
Thanks to Splinter for testing.
2009-08-24 14:02:43 +04:00
VladimirMangos
9f01551210 [8414] Re-implement [8406] in more clear and working way.
* Rename IsSingleFromSpellSpecificPerCaster to IsSingleFromSpellSpecificPerTargetPerCaster for clear meaning.
* Rename IsSingleFromSpellSpecificRanksPerTarget to IsSingleFromSpellSpecificSpellRanksPerTarget for clear meaning.
* Add new IsSingleFromSpellSpecificPerTarget for case single spell specific aura allowed to be at target from any caster and use it.
  Move some spell psecific checks (mostly sellf casted) from IsSingleFromSpellSpecificPerCaster to new function.
2009-08-24 06:44:15 +04:00
VladimirMangos
b91da7846e [8413] Fixed lost 0 in comment and swap enum elemys for better fit to 0.12 cases. 2009-08-24 05:09:21 +04:00
VladimirMangos
261ad1c5df [8412] Update some new and old client supported shift-links to proper format.
* List all client and server side supported shift-link types updated in Chat.cpp
* Now Henchant anf Hglyph links can be used in commands as spell links.
* Hitem and Hquest links changed to client supported form.
2009-08-24 02:44:19 +04:00
nos4r2zod
89a84127eb [8411] Fixed typos in recent spell stacking related comits.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-23 21:42:15 +04:00
Triply
8aef9ce5e9 [8410] Fixed guild bank loading broken by previous commit.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:52:52 +02: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
Triply
512cb786ee [8408] Optimized guild_member loading during startup. Changed rank ids in guild_rank table.
First start of mangos will take more time then usually, because of guild_rank change. If you want to speed first start up, execute command:
UPDATE guild_rank SET rid = rid - 1;

Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 09:22:34 +02:00
VladimirMangos
5ceb0919e7 [8407] Extract from guild bank handler functions for 3 cases and move code to Guild class.
This mostly just move code and caller updates to use it from new place.
More code chnages possible later.
2009-08-23 08:33:21 +04:00
VladimirMangos
f3930cb06f [8406] Detect/check stacking of food/drink/elental shileds as spell specifics.
Food/Drink checks base at nos4r2zod's patch code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-23 03:33:01 +04:00
Triply
178c308c5b [8405] Fixed possible crash in BGQueueRemoveEvent::Execute() when two paralell BattleGroundQueue Updates are called, optimalized code.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-22 10:36:18 +02:00
VladimirMangos
4826a192a0 [8404] Prevent triggering from deleted auras.
This possible at recursive spell event triggering case.
2009-08-22 07:42:59 +04:00
VladimirMangos
6ced2e979d [8403] Fixed cast spell opcode parsing for some cases with additional data. 2009-08-22 04:47:21 +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
nos4r2zod
6c57a01507 [8401] Restore original check as suggested by autor for priest bufs cast
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-21 06:50:34 +04:00
VladimirMangos
6695b1319d [8400] Remove redundent wrong check. 2009-08-21 06:39:40 +04:00
nos4r2zod
e07a0d9652 [8399] Prevent stacking well fed buffs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-21 06:00:08 +04:00
VladimirMangos
ab38b58b12 [8398] Restore proper line-ends in touched sql files. 2009-08-21 03:05:21 +04:00
NoFantasy
9fdfd9f487 [8397] Remove no longer needed ranks of spell 7386.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-21 00:49:27 +02:00
plaes
ddf54081d0 [8396] Misc cleanup patches to configure.ac
* Use pkg-config for ACE (req. ACE 5.5.2 or later), in mangos included 5.6.6.
* Use pkg-config for OpenSSL
* Enable silent builds with >=automake-1.11

Note: possible you will need install pkg-config tool at your Unix/Linux

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-20 06:39:32 +04:00
arrai
4d0eee5393 [8395] Improved TimeStringToSecs 2009-08-20 01:13:20 +02:00
VladimirMangos
9eb5a3eea1 [8394] Fixes for some non-self only positive spells.
* Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
* Some related fixes for pet spells with target mode TARGET_SINGLE_FRIEND_2
* Implement original caster bonus part of spell 54646.
2009-08-20 00:26:34 +04:00
VladimirMangos
f45253ac8b [8393] Fixed format CMSG_FORCE_MOVE_UNROOT_ACK and CMSG_FORCE_MOVE_ROOT_ACK.
Also avoid packet tail warnings spam at rejected movement packets.
2009-08-20 00:15:34 +04:00
Den
055aa46a8f [8392] Implement 47569 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-19 07:05:44 +04:00
QAston
c5bed93909 [8391] Apply for FORM_SHADOW aditionl auras from spell 49868.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-19 05:16:37 +04:00
VladimirMangos
0ae528775d [8390] Fixed log output work after recent replace UTF8PRINT macro. 2009-08-19 01:58:47 +04:00
VladimirMangos
35121cdd34 [8389] Implement check really read received packet size and warning it not all data read.
* This let more easy catch packet structure chnages at client switch.
* Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS
* Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM
* Added read data amount fixes for some other packets.

Thanks to TOM_RUS in help check correct packets structure.

Note: not all packets possible fixed. Please report for not fixed cases at errors:
"opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)"
2009-08-19 00:45:24 +04:00
freghar
17b94e1e09 [8388] Replaced UTF8PRINT macro by a function
Should also fix possible color leak on Windows CLI.

Signed-off-by: freghar <compmancz@gmail.com>
2009-08-18 20:13:57 +02:00
arrai
65e723ba9e [8387] Fixed error output at creature_template check 2009-08-18 18:56:03 +02:00
arrai
6e70c05191 [8386] Fixed areatrigger distance check
Old check caused false positives for trigger #4853
2009-08-18 17:41:28 +02:00
arrai
c34ff46443 [8385] Use 3D coordinates for checking corpse distance at reclaiming 2009-08-18 16:09:10 +02:00
VladimirMangos
2372623a5b [8384] Restore build mangos at Unix/Linux.
* Also fixed wrong read_skip<char*>() code.
* Also fixed some warnings in related code.
2009-08-18 16:58:48 +04:00
VladimirMangos
55a56ad71e [8383] Implement WorldSession::HandleCancelChanneling. 2009-08-18 04:13:06 +04:00
VladimirMangos
2b534cbc23 [8382] Implement ByteArray functions for skip read of fields not needed for server in received packets.
* Use this fucntions in some case.
* Change some packets to form: read fields first check later for better control recieved packets structure.
* Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.
2009-08-18 03:49:50 +04:00
VladimirMangos
74d27294aa [8381] Some refactoring work in Unit::m_currentSpells code.
* Restrict access, use enum args, move some repeated code parts to function.
* Make m_selfContainer set only part of Unit::SetCurrentCastedSpell
2009-08-18 02:12:56 +04:00
VladimirMangos
1b1d013623 [8380] Use CastSpell instead create triggered channaled spell in Spell::EffectTriggerRitualOfSummoning. 2009-08-18 01:03:20 +04:00
Revils
3ca16beace [8379] Fixed typos in spell 48384 and rabks code. 2009-08-17 05:52:14 +04:00
arrai
a24f39a36f [8378] Use exceptions instead of explicit size checking for each packet
CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd
could crash due to the asserts in ByteBuffer.h. That was exploitable by
malicious players.
Furthermore, there were duplicate checks: Additionally to
CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye
on not exceeding the packet boundaries - just to crash the server for
sure in such a case.
To prevent memory leaks or other undesirable states, please read in
every handler all variables _before_ doing any concrete handling.
2009-08-16 23:50:22 +02:00
VladimirMangos
c26c7395a1 [8377] Resolve some spell_area problems in GM and non-GM mode.
* Make spell 40216 and 42016 casted/remove at aura 40214 apply/remove.
  And drop related spell_area possible existed data.
* In general restore apply area limitations to spell casting in GM mode.
2009-08-17 00:40:19 +04:00
arrai
e7b63e759f [8376] Fixed mangos.sql after 8364 2009-08-16 16:46:19 +02:00
Lutik
935d47978f [8375] Update start fall height at lost SPELL_AURA_FEATHER_FALL.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-16 10:52:23 +04:00
VladimirMangos
4b644a57a4 [8374] Implement glyph 43379. 2009-08-16 10:41:26 +04:00
ApoC
a7564128bb [8373] Correctly set bgInstanceID to 0 when log in into alredy ended BG.
This should fix problem that players who logged off during BG are after every
next login into game teleported to BG entry position.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-08-15 22:35:31 +02:00
VladimirMangos
a6503ac0a4 [8372] Prevent remove triggered spell auras by later applied parent spell auras. 2009-08-14 18:48:00 +04:00
NoFantasy
9b0f5dba76 [8371] Updated comments for enum CreatureTypeFlags.
Thanks Hunuza for additional research.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-14 11:53:00 +02:00
NoFantasy
150d3f4c95 [8370] Implement dummy auras for spell 36730 and 44191.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-14 10:58:01 +02:00
VladimirMangos
8d30f01a73 [8369] Some step back in triggered effect caster selection.
This must fix some broken after [8360] spells.
2009-08-14 04:10:02 +04:00