Commit graph

480 commits

Author SHA1 Message Date
VladimirMangos
4bc5bf3877 [7497] Remove auras from GO owner at remove connected owned th this spell GO. 2009-03-19 21:58:31 +03:00
tomrus88
9d2acc22b4 Merge branch 'master' into 310
Conflicts:
	src/game/GameObject.cpp
2009-03-18 07:45:29 +03:00
VladimirMangos
c99a849eb9 [7475] Move Player::IsInFeralForm to Unit::IsInFeralForm 2009-03-16 23:22:52 +03:00
VladimirMangos
5d6cb5fe80 [7468] Convert pet cast check code to use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now) 2009-03-16 15:40:43 +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
=Neo2003
9b1216f21c [7458] Not reset/set some data at attack target switch that expected do at any target lost.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-14 23:40:57 +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
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
DiSlord
2240fc49aa [7430] Fix warror ability heal amount
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-03-09 23:01:28 +03: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
VladimirMangos
44f3c15710 Revert "Flat Modifier for Glyph of Spiritual Attunement"
This reverts commit 332371c284a6513693786ab6c3fa933570953159.

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

unexpectadly cpushed, sorry.
2009-03-09 06:43:46 +03:00
multiplexer
ba1cfbf121 Flat Modifier for Glyph of Spiritual Attunement 2009-03-09 03:39:54 +03:00
tomrus88
8f9849969b Updated to 9658 client build, SMSG_ADDON_INFO temporary disabled 2009-03-08 01:51:23 +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
VladimirMangos
c18d20782b Implement some death related achievements
* ACHIEVEMENT_CRITERIA_TYPE_DEATH (normal and arena types counting)
* ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON (instance types by man limit counting)
  Note: need fixed for cases when max allowed players different from recommended count.
* ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM (environment damage sources by types)

Fixed:
* ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER
   - self-kill counting as death from players
   - same team player kill in opposition kills counter.

Also cleanup in Player::EnvironmentalDamage use DBCStructure.h comment.
2009-03-06 04:26:48 +03:00
pasdVn
0d96837d48 [7375] Typos in dynamic object registering and deleting for owner.
This let have more then one persistent aura in same time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-03 23:53:28 +03:00
VladimirMangos
03273a49da factionTemplate->faction can be 0, add appropriate checks to prevent crashes and unexpected work. 2009-03-03 17:13:11 +03:00
VladimirMangos
de51363151 [7365] Implement potion in combat delay proper work.
Original patch provided by miranda.conrado.
2009-03-01 11:33:08 +03:00
VladimirMangos
2b10d8fd71 [7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.

Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
      Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804 [7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
ce8bd43bef Merge commit 'origin/master' into 310 (at [7360]) 2009-03-01 01:18:20 +03:00
Triply
3560d9de54 [7351] Fixed removing normal horde groups from queue.
Fixed Reflective shield - patch provided by Rastik. Thx

Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 11:08:57 +01:00
tomrus88
42a8ae3752 More work on update packets 2009-02-26 19:55:45 +03:00
tomrus88
a8f7f57065 New client build, SMSG_MONSTER_MOVE partly fixed 2009-02-26 11:39:00 +03:00
VladimirMangos
1349d36270 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code.
* Move common code in appropriate functions.
* Correct select speed and 2D/3D distance for creature/player walk/fly
2009-02-25 07:03:45 +03:00
Gommes
487a3d3dfc [7316] Fixed spell 51556 and ranks DummyAura procing.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:14:19 +01:00
zhenya
8dc3586889 [7285] More code cleanups in static data structures use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-16 17:10:24 +03:00
DiSlord
56e97b4d9e [7280] Implement 287 SPELL_AURA_DEFLECT_SPELLS aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-14 19:08:06 +03:00
DiSlord
b049b4ee54 Fix chance calc added by SPELL_AURA_MOD_COMBAT_RESULT_CHANCE
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-14 19:07:22 +03:00
DiSlord
4792d20b4e [7264] Use AP fields as signed integer
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-11 00:09:31 +03:00
DiSlord
13c5d3a33c Fix apply SPELLMOD_MULTIPLE_VALUE for SPELL_AURA_MANA_SHIELD drain
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-10 23:58:32 +03:00
DiSlord
14be347015 [7263] Fixed AP calculation in some cases
Fixed use AP dynamic mods (bonuses from stats)
Apply ITEM_MOD_ATTACK_POWER for ranged AP
Implement feral AP from weapon dps for druids

Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-10 21:24:45 +03:00
VladimirMangos
09bf9260cb [7260] Fixed access to uninitilized fields in FleeingMovementGenerator and Creature::IsOutOfThreatArea. 2009-02-10 06:22:52 +03:00
ApoC
3529d084d9 [7245] Typo fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:35:15 +01:00
pasdVn
7c32de2f8d [7244] Fixed affecting of positive spells critical chances by scripted critical chances.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:22:19 +01:00
DiSlord
2e6e2946cc [7210] Implement shaman 51505 and ranks crit, and work 55447 glyph
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-01 00:26:09 +03:00
DiSlord
2b1be18a02 Add some function for find/remove aura and use it in some cases
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-01 00:23:33 +03:00
DiSlord
14a50bfce9 Add custom chance for some spells in 16180 and ranks (added in 308)
Show enchant id in error log

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 19:41:42 +03:00
VladimirMangos
9d83c18591 [7208] Lost chnage from prev, commit. Fix crash at player loading. 2009-01-31 06:37:36 +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
VladimirMangos
b5da610388 Phase system development continue.
* Use WorldObject phase mask field instead explicit aura scan. This allow have phase for any world objects.
* Add phase checks to packet broadcasters/object searchers. This let correctly work say/yell/area
  and multi/random target spells/aggro assistance in phased areas or target selection.
* In GM-mode character presense (see and visible) in all phases except normal visibility efects including GM-visibility.

TODO: summoned objects phase set base at owner phase, load phase mask for creatures/gameobjects from DB, in game commands.
2009-01-31 06:06:01 +03:00
VladimirMangos
a1b5c3cb02 Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures)
Better gameobject barber chairs check at loading.
2009-01-31 05:55:10 +03:00
DiSlord
bbdf5ca8eb [7204] Fixed type conversion in spell bonuses calc (fixed huge damage in some cases)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 01:35:14 +03:00
VladimirMangos
0fd361a0a3 Switch to support client 3.0.8a (build 3506)
Merge commit 'origin/308'
2009-01-30 02:10:23 +03:00
DiSlord
b798beeec6 [7200] Fix spell damage bonuses in some cases
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 22:23:26 +03:00
DiSlord
1a63e23ffd Not apply/remove passive auras on aura state change (not need)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 02:50:33 +03:00
DiSlord
ee6d98e182 [7197] Fixed wrong spell damage bonus calculation from AP
Fixed wrong bonus from one shaman buff

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 21:38:17 +03:00
DiSlord
003f909a58 Fixed possible crash in Unit::CalcAbsorbResist
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 21:31:49 +03:00