Commit graph

164 commits

Author SHA1 Message Date
VladimirMangos
448f4195f8 [7595] Remove wrong comments.
Just forgot remove its in time releted patch push.
2009-04-01 14:30:18 +04:00
Charlie2025
3e74e2160e [7591] Implement 52375 and ranks.
(cherry picked from commit f0fb07c5261ffe823a91569a85a6d6018cd69b7a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-31 04:39:08 +04:00
KiriX
f726bd69a5 [7585] Implement quest item 39164 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-29 23:56:22 +04:00
VladimirMangos
f38283eba6 [7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function. 2009-03-29 22:46:32 +04:00
VladimirMangos
ae42ce6418 [7581] Move spell 58418, 58420 to script effect (first) from dummy (second).
In new spell data second dummy effect often use for additional info (script+dummy) or (dummy+dummy) and not called in fact.
2009-03-29 18:56:55 +04:00
GriffonHeart
426da8ad3d [7579] Check quest state and more generic code use for 58418, 58420.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-29 14:20:50 +04:00
arrai
bfbdb42309 [7571] Implemented AttributesEx4 & 0x40 - SPELL_ATTR_EX4_NOT_STEALABLE
Flag has been verified by comparing 3.0.3 AttributesEx4 value of spell 55336 with 3.0.9 one
2009-03-28 18:52:32 +01:00
cccyril
1f654c7969 [7562] Drop code for now not existed spell support.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-28 06:15:14 +03:00
pasdVn
1ad5f9a7b2 [7561] Cleanup effectWeaponDmg from now oudataed special case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-28 06:05:41 +03:00
Ramses_II
00d0718124 [7559] Implement function Player::RewardPlayerAndGroupAtEvent for reward (quest objective only) player and group at special kill-like events.
Use it for Spell::EffectKillCredit and some dummy code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-28 04:30:34 +03:00
VladimirMangos
c33eff13f4 [7540] Move most reputation/force faction reaction code to new ReputationMgr. 2009-03-26 11:28:56 +03:00
VladimirMangos
73ac0bcc7f [7527] Remove redundent arg from Player::EnvironmentalDamage 2009-03-23 18:01:30 +03:00
Triply
53f3c91a39 [7524] Removed commented code in Spell::EffectSendEvent()
Signed-off-by: Triply <triply@getmangos.com>
2009-03-23 11:07:49 +01:00
`win
0f6b2ab9ae [7523] Fixed: players will now drop flag in battleground if they cast immunity buff on themselves.
TODO: players who carry flag in bg are imune to immunity buffs casted by friendly players. (todo added to code).
Bug: if paladin casts Hand of protection on flag carrier - flag will be dropped, but he should get "target is immune" message.
Fixed: Do not call Battleground::Update for battleground template objects.
Fixed: Do not allow immune player to click on object in battleground (not sure if this is correct in all cases).

Signed-off-by: Triply <triply@getmangos.com>
2009-03-23 10:16:44 +01:00
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
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
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
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
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
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
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +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