Commit graph

2413 commits

Author SHA1 Message Date
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
silviu2009
d7b091793c [8337] Fixed typo in function name. Other cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 10:45:17 +04:00
VladimirMangos
6b25da27dd [8336] Prevent apply item 34678 damage effect to cast target if it's friendly.
Current combat target or just selection will be used instead if it not friendly.
2009-08-09 10:00:59 +04:00
VladimirMangos
556c817865 [8335] Restore spell 19574 and 34471 addtional effects work after [8330].
Also simplify spell 61846 and ranks check in HandleSpellSpecificBoosts.
2009-08-09 08:25:54 +04:00
VladimirMangos
fe4b057dc2 [8334] Small cleanup in magic shield back damage code.
Also misc variable use consistence in aura hander (no any affect expected).
2009-08-09 08:16:20 +04:00
VladimirMangos
a2b952b15e [8333] Move sql updates related to 0.13 release to sql/updates/0.13
You can still used its (for example to upgrade DB from 0.12 state)
but its will not included in installed sql updates list at Unix/Linus
for speedup 'make install'.
2009-08-09 02:31:38 +04:00
rilex
175d1c5551 [8332] Add non-unique key accid for realmcharacters table for speedup queries by this field.
Just note about related _not_ mangos bug: this table _expected_ to have primary key by pair (`realmid`,`acctid`).
If used DB not have it for table, then this wrongly setup of DB.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 01:49:59 +04:00
VladimirMangos
4e2536df45 [8331] Restore spirit guids work, step 2
Remove hack in battleground code that prevent proper work guids in result
sabotage of now correct work spell itself.
2009-08-09 00:49:14 +04:00
VladimirMangos
600f6d142d [8330] Move spell 19574 and 34471 boosts to Aura::HandleSpellSpecificBoosts.
Also small cleanup for prev. commit.
2009-08-08 12:02:01 +04:00
VladimirMangos
c8cc9b28f8 [8329] Implement aura deleting delay in case aura lock as currently used.
* Use counter for aura uses lock for recursivly mark as used in some cases.
* At aura remove add aura to deleting delayed auras list for aura target.
* Remove now unneeded hacks from aura handlers and aura tick code (maybe not all found yet)
* Use new aura delete locking for simplify proc spell event code.
* Prevent apply aura boost spells if aura deleted while adding to target by triggered spells.
* Re-implement aura list updating at auras update for target to better way skip
  removed from aura list auras while auras update.
2009-08-08 11:31:29 +04:00
VladimirMangos
7baebcd2de [8328] Fixed problem with crash at startup in result destroy anti-freeze thread runnable.
* Destroy runnable only if no references.
* Some code cleanups
2009-08-08 11:00:03 +04:00
VladimirMangos
79c1324bed [8327] Fixed recieved packet size check for MSG_MOVE_TELEPORT_ACK. 2009-08-08 06:40:43 +04:00
NoFantasy
06b0e7a444 [8326] Check getVictim() before IsInMap check in EventAI EVENT_T_RANGE and prevent possible crash.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-06 20:51:21 +02:00
VladimirMangos
bb2aca5217 [8325] Restore BG spirit guids work after [8308]-1. 2009-08-06 20:09:21 +04:00
freghar
c722ac9e70 [8324] Add WARNING file and drop the EULA
Basically, the reason for the EULA removal is to ensure the validity of
the GNU GPLv2 license, which might be invalidated in some countries by
the EULA.
Instead, a WARNING file with (hopefully) clear statements has been added.

The basic meaning remains the same - every user should check if he/she
is not breaking any local laws by MaNGOS usage.
And the MaNGOS team/project will not provide any resources/help for
(possible) illegal public usage, simply to protect everyone willing to
help, including services through which the help could be provided (ie. forum).

Signed-off-by: freghar <compmancz@gmail.com>
2009-08-06 16:41:09 +02:00
NoFantasy
4574d64008 [8323] Check for unitState follow in selectHostilTarget to prevent unexpected enterEvadeMode.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-06 10:58:11 +02:00
VladimirMangos
0449aadc74 [8322] Fixed work spells with ..NOT_BREAK_STEALTH and without ..NO_INITIAL_AGGRO
* Target don't must lost stealth at hit by NOT_BREAK_STEALTH spell also.
* Target don't must aggro at hit not NO_INITIAL_AGGRO spell
  if caster still not detected by aggro. This possoble in case when cast not remove
  stealth (spell have NOT_BREAK_STEALTH)
* This fixed spell 921 wrong lost stealth at success and possible some other spells.
2009-08-06 12:23:41 +04:00
VladimirMangos
a1973ced28 [8321] For additional atatck target ignore source spell target instaed auto-attack target.
This is fix targets selection in special cases for 13877, 26654 and ranks.
2009-08-06 02:01:17 +04:00
VladimirMangos
0d96fc06a6 [8320] Imporovements in wild summoned gameobjects work.
* Not set owner for will summoned gameobjects.
  Its not expected to have owner, and must be accessable to all players (or team).
* Set for all objects summoned by spells: despawned by deafult for proper despawn withut owner.
* Cleanup Spell::EffectSummonObjectWild.
2009-08-06 00:54:51 +04:00
ApoC
82782779f7 [8319] Restore compile PGSQL support after last changes.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-08-05 21:35:54 +02:00
VladimirMangos
0f364bf00a [8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks. 2009-08-05 20:22:54 +04:00
VladimirMangos
dc8bf0f7e7 [8317] Implement 48801 and ranks work as expected in 3.1.x
Original patch writed by QAston.
Original patch prepared to mangos by KAPATEJIb.
2009-08-05 17:53:31 +04:00
XTZGZoReX
ba170f92f2 [8316] Remove duplicate player stat output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-05 16:22:42 +04:00
VladimirMangos
a6413516f9 [8315] Fixed memory leaks (mostly at server shutdown) and code cleanups.
* Fixed leak in BattleGround::m_PlayerScores at BattleGround::Reset,
  add and use BattleGroundScoreMap typedef
* Delete AreaTeam objects stored in global map at shutdown
* Delete Corpse objects stored in global map at shutdown
* Store guild bank log entries as objectes instead pointers in log event lists
2009-08-05 14:27:30 +04:00
Wyk3d
e9234f048e [8314] Fixed a bug with prepare_new_index remaining true when in fact it's not used 2009-08-05 11:39:48 +03:00
hunuza
1e9483111d Fix 49998 and ranks healing part.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-08-05 10:14:45 +02:00
hunuza
902a645116 [8313] Fix dk talent 49219 and ranks.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-08-05 09:27:00 +02:00
hunuza
7dccfe768f [8312] Fixed bonus damage for some DK spells.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-08-05 00:28:02 +02:00
horogandris
58764efabd [8311] Prevent multiline fake messages in chat.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-05 02:10:12 +04:00
Nevan
0a534fda64 [8310] Implement item set 73/824 (4) bonus.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-05 01:51:15 +04:00
VladimirMangos
4e4a10312c My last sec. typo. 2009-08-05 00:59:02 +04:00
KAPATEJIb
fc66d2729b [8309] Fixed paladin judgement selection code in some places.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-05 00:52:40 +04:00
VladimirMangos
3c47e6117a [8308] More generic code for new continent spell casting including fly form/mounts.
* Check new continent requirement by SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND in
  SpellMgr::GetSpellAllowedInLocationError.
* Also in this function let ignore any area requirement in GM-mode (except client side checks ofc if use spellbook/item)
* For fly form/mount auras check only speciaal reqirement like special fly skill and ignore it for dead state.
* Drop explicit fly auras drop at zone update, now this part GetSpellAllowedInLocationError functionality.
* Allow in `spell_area` have data deepndent from ghost auras

This all allow implement apply spells 55173/55164 to player ghost wiht DB support in `spell_area`
2009-08-04 23:43:35 +04:00
VladimirMangos
49b88a14a9 For check allowed in dead state auras apply use IsDeathPersistentSpell instead hack code. 2009-08-04 23:42:45 +04:00
hunuza
6db608d1d3 [8307] Fix skinning for creatures without loot.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-08-04 18:45:01 +02:00
VladimirMangos
bb273d51ad [8306] Implement single-per-caster limitation for paladin "hand of" spells. 2009-08-04 20:01:34 +04:00
hunuza
ba6494162f [8305] Fixed item loading from pdumps.
This resolve problems with marking all items as readble.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-04 13:19:32 +04:00
VladimirMangos
8af151eee7 [8304] Move standup code to login, remove other not needed data change at save.
Now players saved as-is without any modifications.
2009-08-04 12:52:01 +04:00