Commit graph

660 commits

Author SHA1 Message Date
Astellar
ea1ca701ed [7856] Fix cast 51525 and ranks charge on target (not owner)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-20 06:58:50 +04:00
VladimirMangos
122c9c5785 [7838] More fixes in pet's levelup spells.
* Fixed not updating levelup spells at warlock pet summon firsy time (overwriting by default original ranks in fact)
* Correctly upgrade/doungrade spell ranks in action bar.
* Fixed spell learning spam at warlock pet re-summon in some cases.

TODO: currently (before this commit and in it) PetSpellInitialize() called too oftern. Maybe possible cache update flag and do it one time somewhere in Pet::Update....
2009-05-16 17:15:45 +04:00
tomrus88
6734694a90 Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-05-16 00:47:37 +04:00
VladimirMangos
788cdf9b3a [7826] Avoid use GetDistance* that used slow sqrt call where possible, other related speedups. 2009-05-14 18:51:13 +04:00
tomrus88
3c43e9dd52 Merge commit 'origin/master' into 310 2009-05-09 16:03:32 +04:00
VladimirMangos
f53d06ad70 [7801] Apply damage mods from scripts or target state not in DealDamage but in new function before send data to client.
* Fixed bug with health decrease (client side visual bug) at spell damage by target with AI::DamageTaken damage set to 0
* Fixed bug with ignore .die command and instant kill damage in some cases.
2009-05-08 17:07:40 +04:00
tomrus88
c9f5062955 Merge commit 'origin/master' into 310 2009-05-08 15:31:27 +04:00
VladimirMangos
943c76869d [7799] Use single function for SMSG_SPELLNONMELEEDAMAGELOG prepare. Merge comments, replace values by enums. 2009-05-08 12:42:58 +04:00
tomrus88
216b947002 Merge commit 'origin/master' into 310 2009-05-07 02:08:52 +04:00
tomrus88
908f41b031 Attempt to fix quests. Some other fixes. 2009-05-07 02:04:43 +04:00
Opterman
e0f5561cae [7790] Fixed proc spell for talent 49005
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-06 13:59:07 +02:00
Maxxie
ac239e6178 [7787] Apply death preventing buffs after absorbing damage
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-06 14:03:04 +04:00
tomrus88
6821c24268 Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-05-06 09:40:35 +04:00
pasdVn
952474f22d [7782] Fixed dummy proc from spell 34074
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-06 00:25:48 +02:00
Corfen
e70fdad6b7 [7777] Fixed talent 30299 and ranks procing also from holy dmg.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 22:05:54 +02:00
VladimirMangos
bda5da94c5 [7771] Replace different ways access to aura type in Unit::AddAura by more safe (after call ApplyModifier) local variable. 2009-05-05 12:47:01 +04:00
tomrus88
6b71704ac0 Added CMSG_EQUIPMENT_SET_USE opcode structure. 2009-05-05 11:52:58 +04:00
tomrus88
e75e66063e Merge commit 'origin/master' into 310
Conflicts:
	src/game/UpdateData.cpp
2009-05-05 10:44:12 +04:00
tomrus88
7e938af972 Updated to latest PTR client build 9868. 2009-05-05 10:41:22 +04:00
VladimirMangos
15d449c161 [7757] Not remove auras required for casting warrior enrage aura state at this state lost. 2009-05-04 14:16:08 +04:00
AlexDereka
27fabf7ace [7745] Fixed gcc warnings. 2009-05-03 20:25:27 +04:00
tomrus88
335b32dbc3 Merge commit 'origin/master' into 310 2009-05-02 19:56:19 +04:00
tomrus88
b980e9ac59 Updated to 3.1.2.9855 client build, fixed quests, some work on monster movement. Not tested. 2009-05-02 19:41:00 +04:00
ApoC
434cbc2150 [7743] Coding style fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-02 00:38:14 +02:00
tomrus88
21a38a42d8 Merge commit 'origin/master' into 310 2009-04-30 13:55:38 +04:00
AlexDereka
6192fcbd0c [7733] Fixed compile error on VC2005ee. 2009-04-29 15:30:19 +04:00
tomrus88
d4323e0071 Merge commit 'origin/master' into 310
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Player.cpp
2009-04-29 11:51:15 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
tomrus88
950a4bf13f Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-04-28 19:08:53 +04:00
VladimirMangos
73db1cbe01 [7723] New AI call EnterCombat called at enter creature to combat (and re-enter if leave by some reason). 2009-04-27 03:40:50 +04:00
AlexDereka
c9d51a6dc7 [7716] Fixed some typos and possible crashes. 2009-04-26 18:49:07 +04:00
tomrus88
55d6fbe3cb Merge commit 'origin/master' into 310 2009-04-25 17:24:05 +04:00
VladimirMangos
5d9516354e [7709] Cleanups in AI()->AttackedBy use.
* Remove redundent AI()->AttackedBy call at melee cast in state update (called in cast)
* Move attacks state update call after first attack instead after all extra attack state updates.
2009-04-24 18:54:18 +04:00
Trazom
eedc10d46f [7703] Implement heal/damage total counters and related BG achievments.
* ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE
* ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 23:56:15 +04:00
Trazom
9136354e7f [7702] Implement some damage/healing achievement statistics.
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CASTED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 22:04:08 +04:00
Trazom
7c0201f834 [7701] Move explicit healing repeating code to DealHeal functions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 04:54:57 +04:00
VladimirMangos
d910610600 [7697] Interrupt casting at enter to evade mode. 2009-04-22 18:05:59 +04:00
AlexDereka
cc83cac0aa [7696] Fixed compile warnings 2009-04-22 17:03:34 +04:00
NoFantasy
4fd4cc31d1 [7695] Fixed typo & -> &&
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-22 15:35:46 +04:00
tomrus88
a9e148edac Merge commit 'origin/master' into 310
Conflicts:
	src/game/AchievementMgr.cpp
	src/game/BattleGroundHandler.cpp
	src/game/CreatureEventAIMgr.cpp
	src/game/DBCStructure.h
	src/game/Player.cpp
	src/game/Spell.cpp
	src/shared/revision_nr.h
2009-04-21 15:20:45 +04:00
VladimirMangos
fc0e1ecdf1 [7690] Move GetCreature/GetGameobject to class Map.
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
Lightguard
f97735f519 [7686] Implement aura SPELL_AURA_ADD_CASTER_HIT_TRIGGER (111).
Fixed bug with triggering SPELL_AURA_SPELL_MAGNET at non-magic casts (special weapon attacks).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 00:42:16 +04:00
tomrus88
d6f6272f8c Merge branch 'master' into 310 2009-04-14 15:54:43 +04:00
Lightguard
c62543fa52 [7670] Revert "Not apply/remove passive auras on aura state change (not need)"
This reverts commit d5f6eefd1bb3c64797e54d19cc58ccc8c4cf8a4f.

Some 3.0.x talents not work without this like 44441

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 14:57:57 +04:00
VladimirMangos
d85e95295d [7668] Cleanup In CreatureAI function descriptions and AttackStart/AttackedBy use.
* Use AI::AttackStart calls only in case explicit request creature attack from core or AI code "attack it if can".
  Like taunt, pet handler attack command.
* Use AI::AttackedBy for reaction at hostile action "do something at hostile action"
  Like non-dot damage, swing, negative spell landing, or fade fear/etc.
  And provided by default call AttackStart if no current target.

This fix some problems, like:
* Civilian will react propertly at attack by another creature (not pet or player).
* Will not cases (at least triggred by core) when attack target start run to attacker before any real hostile action apply.
2009-04-14 10:14:10 +04:00
VladimirMangos
56350b32ed [7663] Fixed crash at interrupting channeled spell. Cleanup spell interrupt code. 2009-04-13 10:48:26 +04:00
VladimirMangos
0e1997f746 [7657] Implement function for access to gameobject owned by unit and created by some spell. 2009-04-13 01:07:21 +04:00
tomrus88
9b20869a32 Merge branch 'master' into 310
Conflicts:
	src/game/Player.cpp
2009-04-12 14:37:33 +04:00
VladimirMangos
eb198f8239 [7645] Fixed problems wit temporary unsummoned pets and cleanup code.
* Save temporary unsummoned pet to current slot (instead non_in_slot mode) and
  prevent save as current pet summoned while temporay unsummon (arena)
* Prevent overwrite temporary summoned pet data
* At player loading set temporary unsummoned pet data instead pet loading
  if pet expected to be temporary unsummoned in current player state (loading in taxi flight/etc)
* Restore proper pet at arena leave and unsummon in arena summoned.
2009-04-11 08:46:48 +04:00
tomrus88
769a24252b Merge branch 'master' into 310
Conflicts:
	src/game/BattleGroundHandler.cpp
	src/game/Unit.cpp
2009-04-08 15:01:06 +04:00