Sarjuuk
25688fc8eb
[8967] Fixed division by zero in Unit::CalcAbsorbResist.
...
This also fix spell 31662 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-11 02:33:31 +03:00
VladimirMangos
f5895596c0
[8966] Restore full stack bufs from talent 51528 and ranks using unique aura type.
2009-12-11 02:06:58 +03:00
VladimirMangos
dbd3177121
[8949] Implement proper support spell auras with maxstack > 1 and charges > 0.
...
* Like auras expected to be proccessed in spell proc event code (not lost charge at use in spellmods code).
Exist examples for like spells that affect value in spellmods but have different expire requirements.
* Propertly work with stacked auras in spell proc event code
- remove only one auras from stack
- in case charges exist in same time not touch charges but return expire
(all really used auars with maxstack>1 and charges have 1 in one from this values)
2009-12-08 22:04:42 +03:00
VladimirMangos
c6bf3a2cdc
[8948] Not check victim at apply SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL for ranged spells
...
In same way as for other cases. For consistance.
2009-12-08 21:33:13 +03:00
laise
58551fb582
[8947] Implement aura SPELL_AURA_MOD_DURATION_OF_MAGIC_EFFECTS (245)
...
Used in spell 6117 (5/6 ranks)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-08 12:14:53 +03:00
VladimirMangos
87cc1412f8
[8946] Implement talent 57499.
2009-12-08 10:48:14 +03:00
MrLama
51bdaa6b0e
[8945] Update work triggered effect for 20271
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-08 09:58:19 +03:00
Corfen
17e9cafecf
[8939] Fixed talent 49200 and ranks triggered spell for arcane school.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-07 16:13:59 +03:00
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