Commit graph

293 commits

Author SHA1 Message Date
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
DiSlord
c519f9a1b3 Restore some shaman totem work (implement 55441 gluph)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:23 +03:00
DiSlord
20ea42e0db [7176] Implement full work priest 47580 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 18:58:45 +03:00
DiSlord
ae5b65765d [7167] Restore work warrior 23885 after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 03:33:07 +03:00
DiSlord
c336eef4cd Fixed druid tree form bonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-24 23:02:05 +03:00
VladimirMangos
bbf8fd0742 Not store dependent spells in character_spell
* Mark spells learned in result character creating, another spell learning, skill grow,
  quest reward as dependent and not store its in `character_spell`.
* Prevent re-learning known spell in expected state
* Prevent re-learning low rank spell as active if higher rank known.
* New type of non-stacked ranked spells check: skill dependent spell bonuses.
* Activate (show propetly and cast if need) lesser spell rank
  for non-stackable in spellbooks spells at unlearn high rank
2009-01-24 12:03:43 +03:00
DiSlord
abaa111eaa [7159] Allow GO cast as need (use go coordinates for target select in some cases)
Fixed work all Huter traps target selection
More check in ObjectAccessor::Get Object
More generic work 22 TARGET_CASTER_COORDINATES target type

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-24 03:44:45 +03:00
freghar
11ed0e99a8 [7146] Trailing whitespace code cleanup
Signed-off-by: freghar <compmancz@gmail.com>
2009-01-22 18:10:16 +01:00
NoFantasy
1cae7220fa [7145] Mount ids for some spell casted taxi flights.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 18:32:31 +03:00
evilstar
c54383360a [7137] Implement SPELL_EFFECT_ALLOW_RENAME_PET, and then item 43850 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 00:00:32 +03:00
VladimirMangos
7766d016ca [7134] Make reqirement for DB data for non-player explicit discovery spell optional. 2009-01-21 15:51:37 +03:00
VladimirMangos
2b91a790bc [7133] Re-implement explicit spell discovery code.
* Replace reqClass by reqSkillVlaue field in `skill_discovery_template`
  and check expected skill points amount for specific reipe discovery.
* Add new `spell_loot_template` loot table for store item selection data for spells.
  At this moment for expclicit recipes discovery spells.
* Code cleanups.
2009-01-21 06:39:54 +03:00
DiSlord
921914f87e [7125] Work under pet talents
Coorrect update Talent Points on levelup / leveldown
Unlearn other ranks of learned talent
Fix typo in Pet::HasSpell (wrong result for removed spell)
Allow .reset talents reset pet talent
Implement SPELL_AURA_MOD_PET_TALENT_POINTS aura (hunter talent)
Only reset pet talent from trainer unlearn.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-21 00:31:19 +03:00
Wyk3d
a97d49bdc5 [7119] Fixed some typos that caused a freeze 2009-01-20 00:50:04 +02:00
VladimirMangos
ee6072f232 [7117] Implement explicit recipe discovery abilities.
* Implement SPELL_EFFECT_CREATE_ITEM_2 (157). This alos let work many item creating spells.
* Add `skill_discovery_template`.`reqClass` for allow clas specific racipes storing in table.
* Make primary key for `skill_discovery_template` pair (spellId,reqSpell) that allow have duplicate recipes for different reqSpells.
* Implement SPELL_EFFECT_SCRIPT (77) cases for explicit recipe discovery spells with learn spell selected by `skill_discovery_template` data.
Note: as expected explicit recipe discovery abilities always return some spell while exist any not learned yet for player class.
2009-01-20 00:07:43 +03:00
arrai
9af1caccd8 [7116] added support for spell 50977, still requires entry in spell_target_position for triggered spell 53822 2009-01-19 22:00:52 +01:00