Commit graph

719 commits

Author SHA1 Message Date
tomrus88
1a47420fe8 Merge commit 'origin/master' into 320
Conflicts:
	src/game/Map.cpp
	src/game/MapInstanced.cpp
	src/game/Player.cpp
	src/game/SpellEffects.cpp
	src/game/Totem.cpp
2009-07-15 09:40:13 +04:00
VladimirMangos
2dee7750e4 [8173] Fixes for 1822 and ranks base at spell_check detection
* Update AP bonus per tick to 0.18 as expected in 3.0.2 and later.
* Better spell selction to avoid unrelated spells for AP bonuses
2009-07-13 15:58:37 +04:00
SeT
e6d40697a1 [8163] Fixed typo and wrong check affecting threat calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-12 00:18:28 +04:00
ApoC
45eda48693 [8161] Partial revert and fix of my prev. commit in Aura::SetStackAmount
* Aura should be refreshed also when stackAmount == m_stackAmount
  this fixing problem that aura not refreshed if you have already full stack
  and cast "stack spell" again on target

Thanks Corfen for problem reporting and testing

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-11 19:13:01 +02:00
tomrus88
2066de036f Updated auras enum, dbc comments. 2009-07-11 10:36:56 +04:00
VladimirMangos
3bfe549a2b [8147] Some fixes and cleanups in mind control and charmed code. Mind control stil not finished.
* Allow command to mind controlled unit attack target at client. Rename related flag to UNIT_FLAG_PLAYER_CONTROLLED.
* Move code for pet action bar remove at client side to new function Player::RemovePetActionBar
* Not allow cast spells with SPELL_AURA_MOD_POSSESS and SPELL_AURA_MOD_POSSESS_PET by non-players and simplify related code base at this.
2009-07-08 20:09:33 +04:00
ApoC
4b4eb0a6d5 [8143] Fixed Aura::IsCritFromAbilityAura
* If not applied critical damage bonus don't clasify tick as critical.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 19:36:37 +02:00
QAston
42300153ce [8141] Comment fix.
I would like to also appology to QAston for not mentioned him in
my prev. commit (db13c2fe18ff3953851eaaf86922ee57510e556a) as patch author.
I am sorry.
ApoC

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-07 14:50:17 +02:00
ApoC
fccba20c9d [8139] Implemented aura SPELL_AURA_ABILITY_PERIODIC_CRIT(286).
This commit affects spells 49868, 58435, 63068, 63091, 63503,
64915, 64925.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-06 22:48:34 +02:00
ApoC
84e46d76e3 [8136] Fixed aura refresh on modify stack by negative amount.
When decreasing stack amount of aura, aura should not be
refreshed to full time. This should only happen on increasing
stack.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-06 15:36:49 +02:00
m4cm4n
7c5f254012 [8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-04 12:51:15 +02:00
Lightguard
06dcbce4ee [8110] Implement aura SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE (229).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-03 13:41:36 +04:00
ApoC
cd913c1f92 [8093] Fixed effect of spell 25771.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-29 12:50:44 +02:00
ApoC
96875173af Allow NPCs to apply taunt.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-28 21:01:51 +02:00
Maxxie
14a4e0ec53 [8086] Restore work spell 11196.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-28 11:28:25 +04:00
VladimirMangos
21a6a26386 [8077] Resolve mixed store and use 2 different flags values types in single field.
* Create new monster move field in Creature class and use it in all cases when expected use MONSTER_MOVE_* flags.
* Store and use MOVEMENTFLAG_* values in field in MovementInfo structure of Player class.
* Cleanups and fix related code.

NOTE: DB in creature_addon store values similar MONSTER_MOVE_* flags, scritps also expected set only this flags.
2009-06-26 01:57:34 +04:00
NoFantasy
8198da72a9 [8075] Effect at remove for aura of spell 42783.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-24 05:29:45 +04:00
pasdVn
14700e9918 [8064] Implemented dummy procs for spell 47535 and ranks
(cherry picked from commit 80d0367959b110cb3daa0c6dd65022f5ecf84ac5)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-22 00:22:25 +04:00
hunuza
7448aaa37e [8060] Fix 56314 and ranks.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-21 12:33:52 +02:00
bobaz
5f81e5bd35 [8051] Fixed some drinking mana regen spells.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-20 02:59:04 +02:00
bobaz
b2da4b11ce [8049] Added energize effect after last heal tick for 33763 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-20 02:20:13 +02:00
NoFantasy
68848314e2 [8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-18 19:11:57 +04:00
VladimirMangos
7024862b82 [8030] Fixed spell 64901 work and related target selection code refactoring.
* Replace 64904 by 64901 in spellbook and action bars.
* Implement proper max mana percent buff
* Implement proper target selection.
* Move group/raid targets seelction code to functions for reuse code.
2009-06-17 01:05:41 +04:00
DiSlord
1526b7aad5 [8029] Correct show spell charges/stack amount
Signed-off-by: DiSlord <dislord@nomail.com>
2009-06-16 17:36:17 +04:00
Beaste
bdc7df00d6 [8024] Implement SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR(285).
Also drop outdated support code for 61216 and ranks.
This implement work talents 61216 and 48978 with ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-16 12:13:06 +04:00
XTZGZoReX
02a71edb86 [8022] Update spell 53301 and ranks damage formula.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-15 22:24:30 +04:00
VladimirMangos
08fe4933c5 [8015] More dislpay id selection fixes...
* Allow have only A2 or H2 display ids for less strincted DB field data.
* Check model data existance for all provided display ids atserver startup.
* Avoid explicit access to creature info display fields but use display selection functions.
* Rename GetTaxiMount to more clear for returned value GetTaxiMountDisplayId.
* Check display ids in `creature_model_info` at server load.
2009-06-14 21:57:56 +04:00
nos4r2zod
82d3e2ae7d [8011] Send energize packets in correct order to avoid strange client behaviour.
If you send SMSG_SPELLENERGIZELOG after SMSG_POWER_UPDATE client shows mana gain twice.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-14 12:06:50 +02:00
tomrus88
1f87157edf Merge commit 'origin/master' into 310
Conflicts:
	src/game/UpdateData.cpp
2009-06-07 21:42:02 +04:00
ApoC
877f81c37b [7964] Use NULL instead of 0 for "empty" pointers.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-05 14:13:22 +02:00
tomrus88
4236f7c75c Merge branch 'master' into 310 2009-06-05 14:54:05 +04:00
Lightguard
35271fe488 [7952] Implement rogue talent 51690.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-04 06:36:32 +04:00
tomrus88
b9b2e254b5 Merge branch 'master' into 310 2009-06-03 16:03:44 +04:00
NoFantasy
be6e3923d1 [7948] Use SetFaction instead explcit field set, other cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-03 15:35:33 +04:00
tomrus88
cffbb8661b Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
	src/game/SpellAuras.cpp
2009-06-02 15:01:26 +04:00
VladimirMangos
fb45529eff [7929] Some fixes and optimizations for work with packet guids.
* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
* At adding aboyher buffer content copy only until wpos (really writed to buffer data)
* In appendPackGUID check buffer size before data write.
2009-05-31 22:18:48 +04:00
tomrus88
cae3f0a532 Merge commit 'origin/master' into 310
Conflicts:
	src/game/SpellAuras.cpp
2009-05-31 12:16:25 +04:00
DonTomika
0bfcc44bb8 [7928] Player must standup at stun (from 1.5 client starting)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 10:42:01 +04:00
Den
d2e0e3c439 [7919] Aura 50 apply percent to all crit healing amount not only to crit healing bonus.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 02:33:20 +04:00
VladimirMangos
2a27a44e2a [7918] Improve portability in work with uint64 string format specifiers and in code literals.
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
  I64FMTD renamed to UI64FMTD for more clear name.
* Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
  Please always use UI64LIT(0x00001) instead less portable 0x00001LL
2009-05-30 22:44:20 +04:00
tomrus88
a57bf5a78b Applied coding style. 2009-05-29 19:23:28 +04:00
tomrus88
e454cb693d Merge branch 'master' into 310
Conflicts:
	src/game/GameObject.h
	src/game/MiscHandler.cpp
	src/game/Player.cpp
	src/game/QueryHandler.cpp
	src/game/QuestHandler.cpp
	src/game/SkillHandler.cpp
	src/game/SpellAuras.cpp
	src/game/SpellEffects.cpp
	src/game/Unit.cpp
	src/game/WorldSession.h
2009-05-29 19:15:43 +04:00
tomrus88
42f8ce5f3e [7911] Applied coding style. 2009-05-29 19:07:28 +04:00
tomrus88
84ed071e16 Merged and fixed some whitespaces. 2009-05-29 10:40:13 +04:00
NoFantasy
84464e5f3f [7908] Extract class data from creature_*_addon bytes0 fields, drop its, amd add unit_class field to creature_template.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-29 05:51:17 +04:00
tomrus88
b0006cfbc0 Moved SMSG_PERIODICAURALOG to single function, applied coding stype. 2009-05-28 18:46:34 +04:00
tomrus88
afd82229d7 Merge commit 'origin/master' into 310
Conflicts:
	src/game/SpellAuras.cpp
	src/game/SpellEffects.cpp
2009-05-24 10:11:26 +04:00
Serker
59392eee2d [7884] Removed obsolete 28734 dependency.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 23:19:41 +02:00
VladimirMangos
f72a8bc6dc Merge commit 'origin/master' into 310 2009-05-23 01:55:33 +04:00
ApoC
dad833fd3e [7875] Calculate mechanic immune mask for aura remove only if really needed.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-22 19:09:42 +02:00