Commit graph

1937 commits

Author SHA1 Message Date
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
VladimirMangos
6e8aca42f9 [8368] Implement 48384 and ranks work.
Original patch provided by Opterman.
2009-08-13 23:41:14 +04:00
VladimirMangos
8b2517c7a8 [8367] Fixed build after [8366]. 2009-08-13 23:18:24 +04:00
MeRclLy
83a95a2a5a [8366] Prevent double heal effect casting with triggering talent 31876 and ranks.
Cast only at client casted judgements (and ignore triggered additional affects from seals)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 22:37:26 +04:00
Fog
799dc0a693 [8365] Small description clarify for new config option.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 21:37:18 +04:00
Fog
4aee78d2fb [8364] Implement possibility reset client cache data from server side.
Implemented 2 way set cache data "version":
* New db_version.cache_id field let set cache data version by DB content creators.
  This can be used for content releases by seting some unique value at each release.
  This value used by default.
* New mangosd.conf config option let set (overwrite DB value) or use 0 for ignore.
  This can be used by serever admin for reset cache at some local changes.

Note: values use at client login and then must be unique for long period time to avoid ignored
      at login some long not connected client with old same cache version value.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 21:08:36 +04:00
Sarjuuk
fdfc235faa [8363] Implement spell 52610.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 19:27:28 +04:00
VladimirMangos
acc922a11a [8362] Prevent apply low-level cast limitation at positive aura apply to self in hostile to target spell. 2009-08-13 19:22:48 +04:00
VladimirMangos
964046eb3a [8361] Avoid apply bonuses to item 32262 drain life. 2009-08-13 03:49:48 +04:00
VladimirMangos
a8a22db09d [8360] Simplify and partly rewrite SPELL_EFFECT_TRIGGER_SPELL work.
* Always use explicit spell cast from effect code
* Always use for normal case unitTraget self cast
  that fix thriggered spell apply to area targets.
2009-08-12 23:31:10 +04:00
VladimirMangos
39b2844210 [8359] Make effect from item 20414 positive. 2009-08-12 23:14:54 +04:00
VladimirMangos
aef24b3748 [8358] Prevent crash and not appropriate boosts apply at aura boosts proccesing. 2009-08-12 19:40:58 +04:00
VladimirMangos
0bbc496192 [8357] Use less hacky Spell::AddTriggeredSpell call for spell 33076 and ranks jump animation cast 2009-08-12 17:49:37 +04:00
NoFantasy
d35eecf175 [8356] Added 'place holders' for unknown CreatureTypeFlags.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-12 15:41:53 +02:00
NoFantasy
88cf55928c [8355] Implement QUEST_STATUS_FAILED and simplify related code.
Use FailQuest for all quests that can fail and remove no longer needed function FailedTimedQuest.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-12 13:08:47 +02:00
VladimirMangos
74a9624cc3 [8354] Update kill credit for normal creature entry including heroic case. 2009-08-12 14:56:01 +04:00
VladimirMangos
9f6dfa282f [8353] Prevent reporting about wrong stacking in log for spell 33076 and ranks.
Using new delayed aura deleted functionality remove source aura before cast triggred aura.
2009-08-12 05:21:32 +04:00
VladimirMangos
b4fc5a1789 [8352] More correct dazed spells selection for remove at shapeshift. 2009-08-11 21:36:32 +04:00
VladimirMangos
45a588f76f [8351] Implement spell 55693. 2009-08-11 20:22:34 +04:00
VladimirMangos
e01e1b4fb4 [8350] Implement (partly) 78-85 target modes.
Thanks to Astellar for original reseach related target modes.
2009-08-11 19:53:56 +04:00
VladimirMangos
cb29748467 [8349] Include offhand weapon part and aply proper dagger bonus for spell 51723. 2009-08-11 04:32:21 +04:00
NoFantasy
0d9fba971d [8348] Use distance in getContactPoint used for charge spell effects.
Preventing victim from moving behind attacker when victim can move free.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-11 01:30:49 +02:00
NoFantasy
b5c62ba9e5 [8347] Call MovementInform when expected for waypoint movement generator.
Also set waypoint as done, regardless of empty node behavior or not.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-10 23:30:03 +02:00
VladimirMangos
99f74411a0 [8346] Avoid aggro at positive spells for non friendly targets.
* Not all positive spell have SPELL_ATTR_EX_NO_INITIAL_AGGRO (for react at assistance).
  Avoid aggro at positive spell without this flag for non frindly target.
* Some cleanups and better checks in IsPositiveEffect.
2009-08-11 01:24:37 +04:00
balrok
dddacab0dd [8345] corrected startup-checks for spell_area table
old problem was that, for example
a single spell couldn't be cast
at aura OR quest (so 2 entries in this table)

.. will be now possible

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-08-10 21:28:12 +02:00
VladimirMangos
7caf5b5b2f [8344] In case battleground reward items player must "receive" instead "create" item in message. 2009-08-10 15:28:05 +04:00
VladimirMangos
93ed08e886 [8343] Extand level allowed range for item use to upper values if it end at max player level.
Also add DEFAULT_MAX_LEVEL define for store current used client expection about max player level.
For example for current supported this is 80.
2009-08-10 14:22:50 +04:00
pasdVn
6a4b79cdc2 [8342] Iplement talent 53252 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 17:48:12 +04:00
VladimirMangos
9c387ec9fd [8341] Update hardcoded coefficients for Aura::HandleSchoolAbsorb.
Also update spell family masks.

Thanks to raftom for pointing to problem.
2009-08-09 16:05:32 +04:00
VladimirMangos
3c297ac8c4 [8340] Implement talent 29447 and ranks.
Original patch provided by raftom.
More compact spell filter code provided by Sarjuuk.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 15:02:17 +04:00
ApoC
6d9448dd7f [8339] Improved storing/restoring BG entry point
* Introduced new table character_battleground_data
* Entry point is now stored on BG enter event not join event
* Entry point for dungeons is now correctly set to nearest graveyard
  (this prevent well known assert in GetInstance because of porting to already destroyed instance)
* Teleporting from BG correctly restore mount state
* Teleporting from BG correctly restore taxi flight
  (in multipath flight you will end up in nearest transition point on the route)

Signed-off-by: ApoC <apoc@nymfe.net>
2009-08-09 11:00:37 +02:00
XTZGZoReX
5c2ae96e38 [8338] Use expected constant name instead explicit value.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 11:01:53 +04:00