Commit graph

584 commits

Author SHA1 Message Date
MrLama
338375c16d [8935] Implement talent 51480 and ranks buff at dispel 8050 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 23:34:33 +03:00
darkstalker
486c628ce2 [8934] Implement aura PELL_AURA_MOD_MINIMUM_SPEED (305) and it used for FORM_GHOSTWOLF.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 23:06:16 +03:00
MrLama
258e0d7389 [8930] Implement bonus periodic heal part for spell 19750 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also code ordering and cleanups.
2009-12-06 21:55:44 +03:00
VladimirMangos
8c1ea4f444 [8925] Implement 34297 and rank in part health/mana effects.
Original patch from unknown author.
Used version provided by nanounico & KAPATEJIb

Rewrited in more proper way.
2009-12-06 08:25:39 +03:00
Splinter
155ea6f40a [8920] Fixed glyph 42408 by move code to more correct place.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 00:39:04 +03:00
Splinter
6094d2368b [8919] Implement telant 44394 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-05 23:16:30 +03:00
Splinter
12d6c33d86 [8914] Implement full damage absorbing chance with telent 11189
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-04 03:28:35 +03:00
Sarjuuk
edd4492630 [8912] Fix item 47668.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-03 03:12:20 +03:00
VladimirMangos
03e16dd08b [8905] Dispel work with aura stacks fixes.
* Implement set of remove aura functions for remove single aura from stack.
  Also some order function declarations for more clear show different aura remove functions.
* Change Spell::EffectDispel to dispel single aura instead all similar auras from caster.
2009-12-02 22:07:50 +03:00
VladimirMangos
840fad2d07 [8899] Implement glyph 43374
Original patch provided by Splinter.

Also sort Unit::HandleDummyAuraProc generic family spells in case.
2009-12-01 13:48:14 +03:00
przemratajczak
cd2ec48742 [8898] Fix typo: get SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT data from victim.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added function for 2 repeated loop code and fix another typo for second SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT case.
2009-12-01 00:32:26 +03:00
Splinter
63258f2407 [8883] Implement instant healing part of talent 63534 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-28 12:55:31 +03:00
Splinter
026e540c49 [8882] Implement talent 63625 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add `spell_chain` data for spell 56636.
2009-11-27 22:04:07 +03:00
Sarjuuk
a744ffc4c0 [8881] Fixed aura SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT(255) apply.
Function use wrong base at fact that spell misc values for this aura store single value instead mask.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-27 19:37:18 +03:00
KAPATEJIb
9c2ee856e0 [8875] Update spell 51505 and ranks work for 3.2.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-26 02:07:49 +03:00
VladimirMangos
663038c7c7 [8870] Fix problem with max pet distance from owner.
* Avoid use hardcoded and different max distance from owner for pet (more at contienets and less in instances)
  Use instaed max visibility for map as expected.
* Explicitly pet remove at move pet to non-visible distance for player owner.

Original patch provided by Lightguard.
2009-11-24 19:10:38 +03:00
VladimirMangos
e6efe02020 [8867] Implement expected combat stop with friendly faction
In case force reaction apply/remove.
2009-11-23 22:40:46 +03:00
VladimirMangos
67e070870b [8860] Prevent spam to clients by iupdates non-modifed threat list.
Also make more stricted access to threat list content.
2009-11-23 01:48:37 +03:00
QAston
d924406bd8 [8858] Implement client inform about creature threat list changes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also small related code cleanups.
2009-11-22 10:33:11 +03:00
DENNO
903ce57db2 [8852] Implement effects for item 47464 and 47303
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-21 08:40:02 +03:00
laise
166c4feaca [8847] Implement talent 20335 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also reorder switch cases by case values.
2009-11-20 17:32:16 +03:00
Splinter
487a8de692 [8843] Drop support removed in 3.2.x spells 31892, 53720.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 13:19:41 +03:00
balrok
21f234bdfa [8842] send SMSG_PARTYKILLLOG when player kills an unit
thx to darkevil for investigations and help
2009-11-20 10:59:51 +01:00
thenecromancer
6c052039fb [8841] Implement talent 65661 and ranks.
SQL part prepeared by Laise.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 10:20:44 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
VladimirMangos
37ba6623bb [8828] Independent instance reset time for different difficulties.
* Store reset time for map/difficulty pairs.
* Use DBC data for reset time and max players instead `instance_template` fields (dropped)
  for each existed map/difficulty pair.
* Fix some "heroic" related checks in spells/etc.
2009-11-18 10:08:41 +03:00
balrok
35d64c8d62 [8819] remove objects if unit leaves map
prior this - the objects were only removed when
unit itself gots removed
this fix some crashes with Object::SetUint64

thx to juansalvador and vladimir :)
2009-11-15 20:03:12 +01:00
balrok
c3c7ab2f63 [8816] call uncharm for all units at delete
currently it was only done for players - but units
also can have charms which must be removed
2009-11-14 19:11:04 +01:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
XTZGZoReX
1f23884757 Don't use singleton to access static functions.
* This affects especially ObjectMgr functions:
   - GetCreatureInfo
   - GetGameObjectInfo
   - GetInstanceTemplate
   These are in fact static functions.
2009-11-08 03:54:27 +01:00
balrok
84573285db [8760] fixed invisibleForAlive visibility-checks
those creatures shouldn't see alive creatures - else
it would be very unfair ;)

now it's also possible that they can fight against each other

this fixes the bug, that those creatures attacked living players
2009-11-01 21:01:13 +01:00
darkstalker
aa4524852e [8748] Reflect by reflection shields only reflectable damage.
Not reflect self/environment damage cass, and not reflectable spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-29 05:16:54 +03:00
VladimirMangos
1b6176396e [8747] Implement player's pet resilience, also fix DoT case. 2009-10-29 04:34:57 +03:00
VladimirMangos
15ab6794d3 [8742] Avoid aura remove triggered casts and packets send at logout/delete
This is must speedup logout and solve some crash cases or unexpected effects.

Also fix some nonsense code with memory lost possibility.
2009-10-27 04:20:11 +03:00
VladimirMangos
ce3d0170f6 [8729] Fix crash added in [8725]. Sorry. 2009-10-25 03:25:02 +03:00
ApoC
f451298784 [8722] Fixed possible creash.
Crash may happen if you try summon pet by spell and certain NPC is not in
your DB (than CreatureInfo* is NULL).

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-24 14:01:48 +02:00
VladimirMangos
d7ae5e3af0 [8718] Remove most GetObjectInWorld functions and move some map local to Map
Also mape pet guid counter per-map (in different expecte to be global pet number)
2009-10-24 01:16:40 +04:00
AlexDereka
f286a2e64e [8715] Fixed possible crashes and some typos 2009-10-23 17:09:51 +04:00
Corfen
2588cdabfc [8713] Moved calculation of absorbed damage amount into Unit::HandleProcTriggerSpell for spell 62606.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-23 00:33:06 +02:00
ApoC
86a6c952b8 [8712] Fixed commit [8708]
* Now final damage counted also with spell bonus.

Thanks Corfen for pointing this out.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-22 21:56:42 +02:00
Tassader2
53b6d28a24 [8709] Show spell miss as miss, not resist
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-22 14:20:31 +02:00
balrok
97c94cff56 fixed problems with isInvisbleForAlive
removed redundant check at MoveInLos
this check is already done in istargetableForAttack
thx to NoFantasy

fixed in isVisibleForOrDetect that isInvisbleForAlive
wasn't checked.. and therefore all spiritserviceprovider
got visible
thx to NetSky
2009-10-21 20:00:07 +02:00
balrok
fcf854c0bb [8694] GMs should see units with "invisibleForAlive()" 2009-10-21 00:07:11 +02:00
Corfen
86b60901bf [8693] Fixed glyph 45785
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-20 23:54:34 +02:00
balrok
20e8982075 [8690] added unit auraFlag variable
this can be used for faster checking if an unit has a specific
aura applied..
also implemented the alive-invisible auras now with this way
2009-10-20 23:37:31 +02:00
balrok
46389e4e1c [8689] implement function Unit::isInvisibleForAlive
with that i've implemented all known auras which makes
units invisible for alive.. but that's currently quite hacky
i think best would be if we could set a unit-flag after those auras
getting applied
2009-10-20 23:37:21 +02:00
balrok
e990d5c509 [8688] proper implementation of creatures ghost-flags
this reverts 8676 (9c50d9e70314b0cd9eb0fe3bac8040d64a9965a5)
the new flag is from wdb-files so your database should be
already alright

also i've dropped the function Player::CanInteractWithNPCs
cause it was used only in one place and didn't seem to make anything
easier

NOTE for this flag:
it just means that the creature can be seen by ghost-players
too..
so they are still visible for alive players.. unless a special
aura or ther unitflag (spiritguide/healer) disables this..
(see next commit for it)
2009-10-20 23:34:13 +02:00
reeshack
efe057112d [8684] Typos in code for talent 30675 and ranks affect at spell 421 ranks 7 & 8 casting.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-20 18:37:16 +04:00
balrok
a2ff999fd3 [8676] implemented dead-visible creature flags_extra
with this flag you can specify a creature to be only
visible for dead players - this removes all hacks from
spiritguides/spirithealers from code and allows some other
special creatures

i decided to not implement an extra deathstate cause
actualy those creatures are almost equal to living ones
2009-10-18 21:28:36 +02:00
pasdVn
906b2784a2 [8670] Apply SPELL_AURA_MOD_EXPERTISE in related hit chance calculations for creatures
(backported from commit 315a1cd)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-18 18:28:12 +04:00