Commit graph

332 commits

Author SHA1 Message Date
DiSlord
fd5a994659 Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-28 00:41:47 +03:00
invliD
6bdeeed92b [6957] Restore build after [6955].
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-27 23:50:51 +03:00
hunuza
b17b4c9fd8 [6955] Introduce new function Player::LeaveAllArenaTeams and use it on player delete.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-27 17:07:37 +01:00
DiSlord
bae58eb069 Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-23 18:03:21 +03:00
arrai
513255585f [6933] Fixed resurrected players being attacked by creatures near their corpse although they were revived in a safe distance 2008-12-23 15:18:29 +01:00
Wyk3d
f4ce2f6e9d [6930] Added more error output on ArenaTeam load errors. 2008-12-23 00:53:39 +02:00
DasBlub
03c71517ec prevent crashes in Player::_LoadArenaTeamInfo()
(cherry picked from commit 9f908e877d054ff9ab973082d631bb7199f292f6)

Signed-off-by: Wyk3d <Wyk3d@getmangos.com>
2008-12-23 00:51:24 +02:00
DiSlord
cd6717316e [6929] Apply new formula (from 3.0.3) for block value calculation
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-23 01:41:32 +03:00
VladimirMangos
1f73468131 Small code cleanups. 2008-12-22 09:36:57 +03:00
DiSlord
18eeaa85dd Implement 220 SPELL_AURA_MOD_RATING_FROM_STAT aura
Recalculate Melee/Ranged/Spell Hit Chances (not apply/remove) for players

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-21 05:20:09 +03:00
VladimirMangos
c1ae939fb1 Implement new mangos.conf setting HeroicCharactersPerRealm for set cstiom (default 1) amount heroic class chanarcters for account per realm.
Note: set option to 0 disable heroic characters creating.
Also non-player account not have now any limits (except 10 clinet limit) for heroic characters creating.
2008-12-21 04:40:40 +03:00
tomrus88
4c258e20a1 Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
2008-12-19 17:30:26 +03:00
DiSlord
684c386f3a [6918] Not use enchant m_amount as spell basepoint by default (only for random enchants)
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-19 03:10:25 +03:00
DiSlord
28d2d45a46 [6917] Fix field multiplier ad load Arena Info. patch from killdozer.
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-18 14:30:58 +03:00
VladimirMangos
fc684dc737 Simplify check in reagent cheking code. Small code cleanups after recent commit. 2008-12-16 19:19:31 +03:00
DiSlord
f1cc9dc319 * Add some aura names and comments
* Implement 256 SPELL_AURA_NO_REAGENT_USE aura
* Move no reagent check to Player::CanNoReagentCast
* Add some func for get/check SpellClassMask (used in some new aura/effect)

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-16 18:24:30 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
VladimirMangos
a89080730d [6909] Correctly equip all possible amount non stackable items from custom initial items with >1 amount instead equip single and ignore other.
Also corrently report error at buy to equip slot not single item (impossible using normal client way)
instead silencely ingnore amount and equip single by stack price.
2008-12-15 03:12:46 +03:00
bloutix
f5c4fe86e8 Correctly select GM level in case heroic class.
Signed-off-by: bloutix <bloutix@getmangos.com>

Move heroic class starting level to mangos.conf

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-14 23:14:17 +03:00
VladimirMangos
c798318b7b Replace hardcoded client(100) and server side (255) level limtation values by defines. 2008-12-14 22:18:52 +03:00
TERRANZ
558909614a Implement one hand wielding two-hand weapon ability (warrior talent 46917)
Signed-off-by: TERRANZ <TERRANZ@mangos.ru>

Small slot checking fixes and make dual wielding dependent from related ability.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-14 19:29:31 +03:00
tomrus88
e848a52da9 Character re-customization fix 2008-12-13 01:13:19 +03:00
tomrus88
5d4d7292b9 Merge branch 'master' into 303
Conflicts:
	src/game/Player.h
2008-12-12 18:14:49 +03:00
tomrus88
857e7ae7ee Updated opcodes enum. 2008-12-12 18:12:28 +03:00
arrai
027a3ab0bc [6901] Fixed uninitialized variables 2008-12-12 14:41:27 +01:00
hunuza
0f12997ef1 [6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
tomrus88
0f7077546f Implemented character customize future.
Not tested, but should work...
2008-12-12 01:44:52 +03:00
DiSlord
6c02f00a93 Merge branch 'master' of git@github.com:mangos/mangos.git into procflag 2008-12-12 01:34:09 +03:00
hunuza
ac2748a141 [6897] Avoid DB access on uninvite from group.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-11 21:37:24 +01:00
arrai
bc816b70fc [6896] Fixed fall damage after teleports 2008-12-11 17:19:32 +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
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
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
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
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
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
a2503162fc Fixed possible crash 2008-12-03 00:27:33 +03:00
tomrus88
fa13127cf8 Rune cooldowns should work now :) 2008-12-02 22:23:28 +03: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
tomrus88
518d7f6297 Merge branch 'master' into 303 2008-12-01 08:21:10 +03:00
tomrus88
60b8f30898 Rune system fix, dk crash fix 2008-12-01 08:19:26 +03:00
hunuza
818c378854 [6868] Don't load data field from DB to save money or arena team id.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-11-30 18:31:17 +01:00
ApoC
571221148a [6867] Optimized working with DB in Guild code. No need of parsing/saving players data fields anymore.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-11-30 17:31:44 +01:00
tomrus88
0e0d721292 AuraConvertRune, EffectActivateRune, dunno if it's correct way to do that... 2008-11-30 16:16:00 +03:00
tomrus88
54c1585cdf Small fix 2008-11-30 14:59:35 +03:00
tomrus88
ee7f7a0a08 Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/mangosd/mangosd.conf.dist.in
2008-11-30 14:05:56 +03:00
tomrus88
700d3cf609 Some work on Runic Power and Milling Spell Effect 2008-11-30 13:53:33 +03:00
hunuza
e19433fa73 [6863] Arena team related clean ups and adding parts of w12x's arena patch. 2008-11-30 11:41:16 +01:00