Commit graph

4613 commits

Author SHA1 Message Date
tomrus88
db64bf6b80 Merge branch 'master' into 303
I hope it merged correctly...

Conflicts:
	contrib/extractor/ad.exe
	src/game/MovementHandler.cpp
	src/game/Player.h
2008-12-11 12:22:37 +03:00
VladimirMangos
477ba70782 [6893] Fixes in waypoint movement code.
Initilize variables and reset last movment timer for correct waypoints work at reset movement.
2008-12-10 18:53:57 +03:00
hunuza
2e2055c469 [6892] Some small code clean ups and optimisations.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-10 16:42:56 +01:00
arrai
9f8e51ff41 [6891] small performance fix for previous commit 2008-12-10 16:02:26 +01:00
arrai
69e9ab315f [6890] Implemented more correct way of calculating fall damage by using fall distance and not fall time. Thanks to DasMy for finding an appropriate formula 2008-12-10 15:09:03 +01:00
VladimirMangos
3da9f3f4cc [6889] Backport some not client version specific changes and fixes from 303 branch. 2008-12-09 14:08:29 +03:00
VladimirMangos
82cbd9152d Fixed possible crash in Aura::HandleModPossessPet
Also small code cleanup.
2008-12-09 11:47:49 +03:00
VladimirMangos
6cee03bae0 Fixed build after merge. 2008-12-09 08:28:42 +03:00
tomrus88
ef69f6b80c Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/shared/revision_nr.h
2008-12-09 00:32:47 +03:00
hunuza
a94b918ffc [6883] Avoid DB access on deleting guild member. 2008-12-09 00:28:31 +03:00
hunuza
c7aef1a8c8 [6882] Make corpse erase async. 2008-12-09 00:28:30 +03:00
GalaxyMan
99ccdd51b0 [6881] Fix typo in log string.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-09 00:28:30 +03:00
DasBlub
26d1574eb1 [6880] fixed spell 26275 for game object 180797
Signed-off-by: arrai <array.of.intellect@gmail.com>
2008-12-09 00:28:29 +03:00
VladimirMangos
52da5abf4d [6879] Not apply casting time spell bonuses mods to creature (non-pets) casted spells with 0 cast time. 2008-12-09 00:28:28 +03:00
thenecromancer
fdd4fcd48f Set correct base damage for spell 37674
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-09 00:28:28 +03:00
megamage
ca5278ba6e [6877] Fix Prayer of Mending. Use original caster's healing bonus. 2008-12-09 00:28:27 +03:00
DiSlord
1ff2b7fc8b [6876] * Not drop charge for 1120 and ranks (fix SPELL_AURA_CHANNEL_DEATH_ITEM aura work) 2008-12-09 00:28:26 +03:00
DiSlord
c78b5644c7 [6874] * Not remove spell mods for not finished spells
* Ignore self miss in drop combopoints (problems vs 5171 and ranks still exist)
* Allow cast spell on immune if spell can removeit by dispell
2008-12-09 00:28:25 +03:00
DiSlord
9b842b6fdc Work under spell mods
* Add support > 64 bit spellFamily mask
    * Remove not used fields in SpellModifier
    * Remove not used (and not correct work vs charges) GetTotalFlatMods, GetTotalPctMods
    * Use DBC based data for spell_affect
    * More better work SPELL_AURA_ADD_TARGET_TRIGGER aura

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-08 23:22:39 +03:00
DiSlord
916bd178a2 * Fixed some comments in code
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-08 23:19:57 +03:00
Neo2003
09c27ec667 [6887] Position dead flying creatures on ground at creature loading.
Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2008-12-07 22:02:17 +01:00
Neo2003
211f987aa9 Make flying creatures fall on ground when killed.
Fix also fly speed computation for creatures.

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2008-12-07 22:00:53 +01:00
VladimirMangos
8eccdbc046 [6886] Prevent some memory losses at server shutdown. 2008-12-07 23:49:47 +03:00
arrai
a3a57a5390 [6885] In dungeons even fighting creatures are supposed to put nearby players in combat. 3rd party scripting libraries might have to be updated 2008-12-07 21:34:27 +01:00
balrok
2e08a63da7 [6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
    *)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done

and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-07 19:49:45 +01:00
hunuza
66c98859cf [6883] Avoid DB access on deleting guild member. 2008-12-07 15:41:46 +01:00
hunuza
e81af0b739 [6882] Make corpse erase async. 2008-12-07 13:19:52 +01:00
GalaxyMan
4df03b8561 [6881] Fix typo in log string.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-06 21:44:50 +03:00
tomrus88
bfe899b126 Some more map extractor fixes. Patch provided by andstan.
Coding style fix.
Removed hack from lava detection code.
Please test water/lava detection. Should work fine now.
2008-12-06 19:19:46 +03:00
DasBlub
3f90b66125 [6880] fixed spell 26275 for game object 180797
Signed-off-by: arrai <array.of.intellect@gmail.com>
2008-12-06 14:29:20 +01:00
VladimirMangos
43f713f660 [6879] Not apply casting time spell bonuses mods to creature (non-pets) casted spells with 0 cast time. 2008-12-06 08:05:53 +03:00
thenecromancer
aef1542792 Set correct base damage for spell 37674
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-06 08:03:42 +03:00
megamage
3c67ea6f67 [6877] Fix Prayer of Mending. Use original caster's healing bonus. 2008-12-06 04:50:44 +03:00
DiSlord
223fe7321f [6876] * Not drop charge for 1120 and ranks (fix SPELL_AURA_CHANNEL_DEATH_ITEM aura work) 2008-12-06 04:39:36 +03:00
DiSlord
d3b4b341a0 [6874] * Not remove spell mods for not finished spells
* Ignore self miss in drop combopoints (problems vs 5171 and ranks still exist)
* Allow cast spell on immune if spell can removeit by dispell
2008-12-06 01:26:47 +03:00
VladimirMangos
129c0797a7 Save only changed achievement data at player save. Some code cleanups.
Also increase tempory at stack buffere for utf8 convertion. It used in sql quaries log output and need have apporpriate size support.
2008-12-05 23:44:13 +03:00
tomrus88
588edbcedb Fixed merge 2008-12-05 18:38:17 +03:00
tomrus88
af1e1d7794 Merge branch 'master' into 303
Conflicts:
	src/game/Corpse.cpp
	src/game/DynamicObject.cpp
	src/game/GameObject.cpp
	src/game/Object.h
	src/game/Unit.cpp
	src/game/Unit.h
2008-12-05 18:16:31 +03:00
tomrus88
d00a453863 Reduced number of cells (doubled max visibility distance).
Use 2D distance for visibility checks.
2008-12-05 17:42:46 +03:00
arrai
b68b0acb29 Fixed loosing almost all auras at first melee attack after login by partially reverting ce8bce685e4571cb8060a5c75d706570f98c28ca 2008-12-05 13:08:23 +01:00
tomrus88
df3ca15c3d Use 2D distance for visibility checks 2008-12-05 02:01:05 +03:00
Neo2003
9254ca19e6 [6873] make gameobjects scriptable. Patch provided by NoFantasy.
Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2008-12-04 21:53:43 +01:00
tomrus88
99db25c9eb Replaced hardcoded maxareaid with dbc data in maps extractor.
Reduced number of cells (doubled visibility distance).
2008-12-04 19:22:50 +03:00
VladimirMangos
e58df484a2 Implement aura use in new version of racial trait 20550. Add unit stat mods for rune/runic powers.
Last change will also prevent corruption armor and holy resistence values.
2008-12-04 06:30:57 +03:00
tomrus88
a2503162fc Fixed possible crash 2008-12-03 00:27:33 +03:00
ApoC
d5da240913 [6871] Fixed BG Queue need players count announce.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-02 21:59:24 +01:00
tomrus88
fa13127cf8 Rune cooldowns should work now :) 2008-12-02 22:23:28 +03:00
arrai
0dbc77a628 Added support for large server to client packets. SMSG_RESPOND_INSPECT_ACHIEVEMENTS and SMSG_ALL_ACHIEVEMENT_DATA have a good chance of reaching the old 32767 byte limit. 2008-12-02 17:35:41 +01:00
tomrus88
84f43e60ab Fixed crash 2008-12-02 15:20:10 +03:00
tomrus88
b37ccbd08b Rune cooldowns, still bugged for some unknown reason :( 2008-12-01 19:31:47 +03:00