Commit graph

208 commits

Author SHA1 Message Date
Sarjuuk
1d95ae7555 [7516] Add form/mounting/self control loss limitations to 48505 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-22 06:49:50 +03:00
tomrus88
28dc20c6e2 Small code cleanup and partial merge with dev branch 2009-03-21 19:07:38 +03:00
tomrus88
e5bde711ea Merge branch 'master' into 310
Conflicts:
	src/game/Chat.cpp
	src/game/Chat.h
	src/game/GameObject.cpp
	src/game/Level2.cpp
2009-03-21 15:48:51 +03:00
AlexDereka
9b43d2ac9e [7507] Fixed compile 2009-03-21 14:20:13 +03:00
AlexDereka
8a5e4706bc [7506] Remove dual ERROR in logs 2009-03-21 11:47:57 +03:00
KiriX
f6954b0661 [7505] Implement druid talent 48505 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-21 02:15:45 +03:00
tomrus88
a2d3941588 Merged and updated to latest PTR build 9704 2009-03-19 14:18:17 +03:00
VladimirMangos
8228161197 [7490] Implement expected multiply summon case support with proper duration for EffectSummonDemon 2009-03-19 00:19:56 +03:00
VladimirMangos
7589bf7263 [7489] Update gameobject rotation fields if need.
* Fixed update absent in ".gobject turn" command
* Propetly set rotation fields for summoned objects
* Check rotation/coordinates fields values at server loading
2009-03-18 21:04:57 +03:00
tomrus88
9d2acc22b4 Merge branch 'master' into 310
Conflicts:
	src/game/GameObject.cpp
2009-03-18 07:45:29 +03:00
VladimirMangos
0e987bf59e [7467] Use SpellCastResult and replace CanCast by CheckCast.
Note: proper way to check: if(spell->CheckCast(...)==SPELL_CAST_OK)
2009-03-16 13:17:44 +03:00
VladimirMangos
4aaf758ab7 [7464] Move check of spell using for lock open to single function. Remove more hacks. 2009-03-16 00:43:53 +03:00
VladimirMangos
afe5eb3e1d [7461] Give proper honor amount at item based AddHonor spells cast. 2009-03-15 23:25:15 +03:00
VladimirMangos
991376067d Replace hack code in Spell::EffectOpenLock by generic way for check lock key items/skills 2009-03-15 02:56:06 +03:00
Lightguard
f280c96770 [7454] Support scripting for dummy spell effects.
Note: scripting calls specially added in end of function for allow calling only
      if internal implementaion absent for dummy effect.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-14 00:21:06 +03:00
VladimirMangos
3a5d59c0c7 [7450] Fixes and improvements in TARGET_BEHIND_VICTIM, SPELL_EFFECT_JUMP2, SPELL_EFFECT_TELEPORT_UNITS work.
* Move near teleport code for player/creature in Unit::NearTeleportTo
* Allow correctly seelct target and end point orientation for script casted spells with TARGET_BEHIND_VICTIM
* Replace use BuildTeleportAckMsg by BuildHeartBeatMsg for creature teleports. BuildTeleportAckMsg
  set active mover for targeted player to affected creature and "freeze" player.
2009-03-13 17:08:10 +03:00
VladimirMangos
b71759d204 [7445] Implement SPELL_EFFECT_JUMP2 used in some jump to target (unit/go/coordinates) spells. 2009-03-12 14:01:04 +03:00
tomrus88
31b3ee95ad Merge branch 'master' into 310
Conflicts:
	src/game/Level2.cpp
	src/game/PetHandler.cpp
	src/game/Player.cpp
	src/game/Player.h
	src/game/SkillHandler.cpp
2009-03-11 12:22:58 +03:00
Triply
2c787373c5 [7435] Fixed Spell::EffectAddHonor to corrcetly add honor based on player's level
Signed-off-by: Triply <triply@getmangos.com>
2009-03-10 11:00:21 +01:00
rechapa79
bdd7b4f74b [7434] Fix one paladin spell bonus
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-03-10 02:48:17 +03:00
Lightguard
82e0e0b027 [7431] Fix the gnome racial spell
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-03-09 23:31:13 +03:00
Lightguard
acce72403c [7429] Fix one warrior ability bonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-03-09 22:28:57 +03:00
Triply
52696ce029 [7426] Mounted players now can capture tower point in Eye of Storm.
Renamed function isAllowUseBattleGroundObject to CanUseBattleGroundObject

Signed-off-by: Triply <triply@getmangos.com>
2009-03-09 16:40:13 +01:00
balrok
0babfec043 [7424] Codestyle: removed not needed \n in log output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-09 14:20:10 +03:00
VladimirMangos
4dad8f40d0 [7419] Fixed some type convertion warnings. 2009-03-09 08:23:25 +03:00
balrok
54f2dbefa0 [7403] much more unneeded includes removed
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
balrok
f3ea479f6e removed duplicated includes
i used the following script
(i have no awk-skills :-/ i guess with awk it will look much better)
for i in `ls *.h`
do
    HEADER="#include \\\""`echo $i | sed 's/\./\\\\./'`"\\\"" #a grep-readable #include "file.h"
    # following should deletes the first occurence of a duplicated
    # (#include) line
    # if an include is more then once in this file this script
    # has to be run more often - i don't know a better solution
    grep -cH "$HEADER" *.[hcpp]* | grep -v :1$ | grep -v :0 | sed -r 's/:[0-9]*$//' | xargs sed -i '0,/#include "'$i'"/{//d;}'
done

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Restored build for x64: WorldSession expected to be fist include in WorldSession.cpp
2009-03-08 02:08:16 +03:00
tomrus88
6aadc16d7d Merge branch 'master' into 310
Conflicts:
	src/game/Player.cpp
	src/game/QueryHandler.cpp
2009-03-06 08:03:34 +03:00
GriffonHeart
e409b32c71 [7377] Dummy effects for portal spells used in DK starting area.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-04 02:40:28 +03:00
tomrus88
2197da6407 Fixed player name response (chat now working) 2009-03-03 12:38:16 +03:00
tomrus88
8f1edbf513 Implemented learn preview talents, fixed talents/glyph display 2009-03-03 02:01:16 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
tomrus88
aedf3dd722 Updated spell auras/effects enum 2009-02-28 19:11:04 +03:00
VladimirMangos
601f305521 [7320] Avoid apply harcoded (unexpectadly) percent value 2 times to weapon damage part of special weapon ability. 2009-02-21 22:09:18 +03:00
Tequila
9f4154a6f9 [7318] Fixed damage bonus for spell 1329 and ranks when target is poisoned.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:26:16 +01:00
Lightguard
628d97f588 [7315] Fixed bonus damage for Seal of Command.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:07:19 +01:00
NoFantasy
58f2c540bf [7287] Remove wrong implementation for spell 37573 dummy effect. It better implement in scripts anyway.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-16 18:05:12 +03:00
VladimirMangos
f75f112bfc [7284] Avoid 2 times skill value request. 2009-02-15 23:50:54 +03:00
VladimirMangos
5a4358dda9 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
* Use in functions and fields BattlegroundTypeId type instead uint32
* Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
  Many bg have same raw values for type id and queue id but some can be affected by this bug:
  BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
* Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
* Remobe redundent for header itself includes for BG headers.
* Use Auction location enum instead raw valus.
2009-02-08 11:05:11 +03:00
VladimirMangos
5e2553ff7e [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
2009-02-07 10:34:11 +03:00
VladimirMangos
cb0ebde926 [7234] Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 07:57:45 +03:00
VladimirMangos
f94377622e Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 06:00:01 +03:00
VladimirMangos
fdd8176d74 [7227] Implement prismatic sockets. Related code cleanups.
Big thanks to TOM_RUS for help in reseach!
2009-02-04 02:09:46 +03:00
VladimirMangos
f5ac3d245f [7216] Create gameobject in death point instead spawn point in spell 23019 effect. 2009-02-01 21:31:56 +03:00
DiSlord
8197ccbc73 [7209] Fix damage for paladin 53595
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 22:04:12 +03:00
DiSlord
90f09e001a Restore work priest 47580 and ranks after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 19:39:37 +03:00
VladimirMangos
aa24bd836e [7207] Phase system development continue for DB/in_game objects
* Store phase mask for creatures/gameobjects/corpse in DB
* Propertly set phase for summoned creatures/gameobjects/pets/corpses/spell related dynobjects
* Select proper phase for spawned creature/gameobjects and save it in DB

TODO: in game commands.
2009-01-31 06:11:50 +03:00
DiSlord
4ecfbcc2f5 Use spell_bonus_data table for store custom damage/healing bonus coefficients
Big thanks ApoC for help create table.
Fixed bonuses for stacked periodic
Warning need test all coefficients for correct bonus amount.
TODO:
 use this table for absorb bonus calculation
 use this table for melee spells AP bonuses
 use chain multipler in final damage/heal amount

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:23:16 +03:00
DiSlord
702105ccca Remove not need code (implemented by another way)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:12:08 +03:00
DiSlord
8fabb0af17 Implement warrior 1464 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:51 +03:00