Commit graph

660 commits

Author SHA1 Message Date
VladimirMangos
0b4c37f751 [8035] Return found guardian in search function. Update caller. 2009-06-17 19:37:08 +04:00
Tanatos
57ac3bdfef [8028] Missing part of [7879] commit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-16 14:11:05 +02:00
Ambal
b76c4c2f3c [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-06-16 12:47:02 +04:00
VladimirMangos
309ac7ead0 [8023] Move guardian list at Unit level and unsummon guardians at owner-creature death/unload.
This expected to fix well known crash at intances unload with creature with summoned guardians.
Note: this "fix" special case but not original source of problem in general.
2009-06-15 23:46:13 +04:00
Beaste
9d8aa63d5c [8021] Implement triggering part of shaman talent 51483 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-15 16:37:32 +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
DonTomika
dcba023261 [8010] Show overheal in combat log.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-14 11:33:52 +02:00
hunuza
a34e7857f1 [8009] Pass const string reference to functions where possible.
Avoids creating an unnecessary copy of strings.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-14 11:21:26 +02:00
ApoC
a8a4836e1a [8000] Corrected calculation of healing amount for 47230 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-12 15:57:48 +02:00
nos4r2zod
31957a22d6 [7990] Trigering "on hit" combat spell only at related to current hit weapon.
Also check at loading that only weapon item templates have "on hit" spell triggers.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-11 01:29:33 +04:00
tomrus88
1f87157edf Merge commit 'origin/master' into 310
Conflicts:
	src/game/UpdateData.cpp
2009-06-07 21:42:02 +04:00
ApoC
4668323c83 [7973] Implemented proc for 25899.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-07 02:16:09 +02:00
ApoC
ffad65fe01 [7972] Fixed 20186 to use base max mana instead of max current mana.
Thx. to Ambient who pointed it out.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-07 02:14:28 +02:00
ApoC
30c054ae38 [7965] Implemented proc for 20911 spell.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-05 16:23:28 +02: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
ApoC
5848ada3eb [7963] Fixed energize value for 20186 proc.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-05 13:58:38 +02:00
tomrus88
4236f7c75c Merge branch 'master' into 310 2009-06-05 14:54:05 +04:00
ApoC
fb21b00480 [7959] Inserted newline to make gcc happy.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-05 03:09:29 +02:00
Lightguard
07fe1cfd04 [7955] Fixed healing amount of 47230 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-04 21:42:32 +02: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
Corfen
454c756025 [7943] Stunned targets should not be immune to fear effects.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-02 12:33:59 +02:00
VladimirMangos
7d6bf1fdbf [7932] Store in DB only spell part of pet action bar, set other to default state (reaction saved). 2009-06-01 04:44:02 +04:00
tomrus88
cae3f0a532 Merge commit 'origin/master' into 310
Conflicts:
	src/game/SpellAuras.cpp
2009-05-31 12:16:25 +04:00
VladimirMangos
79dab3dae5 [7922] Implement param2 for ACTION_T_COMBAT_MOVEMENT for allow control start/stop melee combat state for creature at start/stop movement in combat.
Also small fix for avoid unexpected set pet speed to owner speed for non-player case. In player case this hack speed setting still required.
2009-05-31 04:35:38 +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
daveh
902252c1e9 [7916] Fixed pet action bar setup.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-30 06:08:39 +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
tomrus88
b0006cfbc0 Moved SMSG_PERIODICAURALOG to single function, applied coding stype. 2009-05-28 18:46:34 +04:00
tomrus88
f6e2b55e2c Merge branch 'master' into 310
Conflicts:
	src/game/Player.cpp
2009-05-28 10:16:02 +04:00
VladimirMangos
4d8adefe70 [7901] Refactoting pet action bar related code. Fixed some related bugs.
* Correctly update action bar at loading and other cases when listed unlearned/not existed spells
* Avoid send data by PetSpellInitialize() many times while pet loading
2009-05-27 19:43:57 +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
qsa
37f8cea0a1 [7885] Fixed talent 34914 and ranks proc spell to correct spellid.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 23:43:13 +02:00
ApoC
d3d07c5657 [7880] Added error output for default switch case.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 16:04:01 +02:00
ApoC
dc389f416c [7879] Added SPELL_AURA_MOD_SPELL_CRIT_CHANCE into isTriggerAura.
This will fix auras (57529, 57531, possibly others) to be correctly removed dependently on their procFlags and procCharges.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 12:30:26 +02:00
Tanatos
a59de33941 [7879] Fixed proc for 31571 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 12:21:14 +02:00
VladimirMangos
f72a8bc6dc Merge commit 'origin/master' into 310 2009-05-23 01:55:33 +04:00
VladimirMangos
bc4611e8c0 [7877] Correctly set totem PvP state at loading and owner PvP state change, including GM totem case.
* Also set PvP state in proper way at pet loading if owner in PvP state.
2009-05-23 00:37:49 +04:00
ApoC
e0e5ed7bd8 [7876] Implemented dummy effect and special target selection for 52759.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-22 20:34:58 +02:00
tomrus88
52effd119c Merge commit 'origin/master' into 310
Conflicts:
	src/game/TargetedMovementGenerator.cpp
	win/VC71/shared.vcproj
2009-05-21 20:17:19 +04:00
tomrus88
c802504304 Applied coding style. 2009-05-21 19:45:18 +04:00
NoFantasy
50898eedde [7864] Use x.0f float constant format.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-21 17:34:18 +04:00
VladimirMangos
0f928164e0 [7862] Fixed infinity loop at search spell related summoned gameobject in owner list. 2009-05-21 03:42:26 +04:00
Astellar
75438d2736 [7861] Update visibility check to make possible have invisible for owner pets/totems (need for some spells)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-21 02:39:28 +04:00
Neo2003
fa03b3663a Mobs fleeing and getting assistance feature implementaion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also rename ACTION_T_FLEE to ACTION_T_FLEE_FOR_ASSIST for clear use
2009-05-21 01:33:28 +04:00
tomrus88
ebb03b7b9f Merge commit 'origin/master' into 310
Hope it works with live 3.1.2.9901 client
2009-05-20 10:53:55 +04:00