Commit graph

982 commits

Author SHA1 Message Date
Schmoozerd
ce11b046e3 [12050] Interrupt possessed channeling when possessed dies 2012-07-16 22:10:48 +02:00
Schmoozerd
8b075e1037 [12047] Refactor Unit kills Creature case
Add method Unit::JustKilledCreature to include code of killed creature case in Unit::DealDamage
2012-07-16 20:18:39 +02:00
Schmoozerd
208e9acbff [12031] Change way location targeting is handled 2012-07-12 21:57:45 +02:00
Reamer
ea30899db4 [12027] Add some VMap LoS checking functions to Map scope 2012-07-05 19:37:35 +02:00
Schmoozerd
0e0a765312 [12026] Replace std containers of ObjectGuids with some predefined types
Based on patch by stfx

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-03 18:47:05 +02:00
stfx
a309de2e6d [12022] Some more warning fixes 2012-06-25 15:56:53 +02:00
Schmoozerd
01b6c6b8f4 [12019] Various changes
* Add some const correctness
* Remove unused Unit::isHover() function
* Help compiler optimize code from last commit (thx to vladimir)
2012-06-25 14:54:00 +02:00
Schmoozerd
d08edbd93c [11980] Improve support for wild summoned GOs
* Support GetGameObject for wild summoned GOs
* Proper delete WildSummoned GOs after they are used
2012-04-26 18:08:35 +02:00
stfx
f3f3349661 [11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Schmoozerd
7fd1f64319 [11971] Add wrapper HasAttribute to check if a spell has an attribute
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-21 02:02:34 +02:00
machiavelli
af6b589041 [11955] Remove .hover command
You can use .cast 11010 and .unaura 11010 instead

Thanks to stfx for improving patch and porting it for us :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 23:10:43 +02:00
Reamer
fdfc6dece6 [11933] Show Combat log entries for heals from NPCs
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 21:45:50 +02:00
Schmoozerd
af47f39a4e [11930] Fix Pet behaviour for environmental damage
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-28 22:16:47 +02:00
Schmoozerd
443050ffa1 [11927] Fix typo, also use shiny wrapper for ObjectGuid.GetString. Thanks to tyrnon for pointing 2012-02-09 00:40:34 +01:00
sixsixnine
d0bdf7611a [11918] Let creatures evade when the enemy is unreachable
This commit is not great, but will be improved hopefully soon.
However it seems that it doesn't really cause problems, it is just not as good as it should be!
2012-02-07 00:03:51 +01:00
sixsixnine
e738c27714 [11911] Use mmaps for Spline Movement 2012-02-06 23:18:16 +01:00
rsa
c9ead52e68 [11893] Fix copy&paste error from last commit - otherwise server will crash with first loaded player pet
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-31 14:42:02 +01:00
Schmoozerd
6aab5c1022 [11892] Really fix [11890]. This basicly reverts commit 11890
Remove the actually not required faction check in Player::GetNPCIfCanInteractWith - this is done by IsHostileTo a line before
Improve the Player-login AtWar selection to also consider forced reactions

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-31 00:16:21 +01:00
Schmoozerd
3e552fc739 [11890] Fix Player::GetNPCIfCanInteractWith to consider forced reactions
This will fix ie quest 9410 A Spirit Guide

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-27 00:20:14 +01:00
faramir118
eca3586d74 Fix some combat behaviour of NPC-Pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-20 00:42:59 +01:00
Schmoozerd
8068dcf6dd [11875] Update Copyright notice to year 2012
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
Schmoozerd
f4d862ac0a [11846] Changes to default target selection
* Add a new function: Unit::IsSecondChoiceTarget to evaluate if a target will be selected
* Cleanup a bit related code
* SelectHostileTarget
 - Only call AI()->AttackStart for new targets
 - Remove exception for top-most taunter
* Fix a few minor bugs related to selectNextVictim

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-12 21:53:31 +01:00
stfx
09e331767d [11833] remove trailing whitespaces
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-10-18 15:17:54 +03:00
Schmoozerd
fbdd79141c [11827] Implement Creature Linking via database
Thanks to Silverice for feedback!

This system interprets the content of the table `creature_linking_template`. To trigger different actions on different events of the npcs that are linked together.
Possible event/ action combinations can be taken form the flags in CreatureLinkingMgr.h::CreatureLinkingFlags
2011-10-16 13:04:58 +02:00
SilverIce
70a6a1ce76 [11825] Implement creature offhand attack. based on patch from maxxx2021
also drop some archaic Unit's code
2011-10-16 00:01:06 +03:00
SilverIce
012be82c86 [11818] update creature's unit part(update spell events, auras, movement) while in death. thanks to rsa for making tests
this allows us update creature's death persistent auras, fall died creatures in natural, non hacky way

also fix the bug that creature starts waypoint movement not from begining at respawning. thanks to Grz3s for reporting
2011-10-13 15:44:12 +03:00
Midna
cad083b1a8 [11805] Send unit movement speeds in the proper order, correct baseMoveSpeed value order
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-09-25 09:53:54 +03:00
Schmoozerd
8b7f3e5245 [11799] Add HasAuraOfDifficulty to support difficulty spells for HasAura
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-18 14:07:34 +02:00
kid 10
6f156a2583 [11798] Implement select spellDifficulty support in RemoveAurasDueToSpell
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-18 13:20:39 +02:00
Shauren
8e4c46ff2a [11785] Implement dungeon encounters (DBC part), thanks to rsa for porting it to mangos
Signed-off-by: Laise <fenrisse@gmail.com>
2011-09-04 13:15:22 +03:00
Schmoozerd
83079e0b81 [11778] Implement removal of spells that don't have appropriate SpellAuraInterruptFlags using proc system
Signed-off-by: Laise <fenrisse@gmail.com>
2011-08-10 16:06:24 +03:00
SilverIce
e3e39b5607 [11777] reimplement [11719] in better way 2011-08-09 20:56:48 +03:00
Lynx3d
a872624ce3 [11775] Fix compile with gcc for 32bit platforms. 2011-08-08 17:09:04 +02:00
Laise
c60425c6bd [11766] fix spell redirection and totem destruction on hit by redirected spell 2011-08-04 19:34:51 +03:00
Laise
43e45c2b35 [11761] change conditions for default cast end proc 2011-07-30 09:39:23 +03:00
Laise
98bd7918f4 [11760] change proc related part of [11748] note: PROC_EX_CAST_END shouldn't be used with any on-hit proc exs to avoid double proc 2011-07-29 09:38:21 +03:00
Laise
4f397bf7aa [11757] change target of end cast procs to always be the caster, also not allow skill update when proc is called from cast end part 2011-07-27 08:49:44 +03:00
SilverIce
a7610f79c7 [11754] Implement jump (parabolic movement) effect
Also correct destination calculation in Unit::KnockBackFrom - now spline knockback effect works similar to client's effect (same amplitude, speed etc)
2011-07-26 13:56:06 +03:00
Laise
e178c79d51 [11748] Replace SpellModifier struct by direct aura access (this should fix charge drops of 36032) also revert [11740] 2011-07-20 15:41:39 +03:00
SilverIce
a7fba67225 [11732] Interrupt movement state at dying
TODO: proper solution would be update creatures while in corpse state.
This also would solve problems with death persistent auras that not get updated for died creatures
2011-07-10 22:17:08 +03:00
SilverIce
94133107c7 [11727] Interrupt spline movement at teleporting
this fixes the position desync issue caused by teleport packets
2011-07-09 19:23:53 +03:00
SilverIce
fc0eb7e9fa [11721] Simplify walk/run movement mode selection code 2011-07-08 19:30:00 +03:00
SilverIce
9d566398ad [11720] Implement spline movement subsystem
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

 1. Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
 2. Precission increased. There are no more position desync issues since client's position calculation formulas used.
 3. Now possible to move by paths with multiple points, send whole path to client.
2011-07-08 17:25:13 +03:00
SilverIce
e302fce513 [11719] Destroy all movement generators at Unit::CleanupsBeforeDelete call
this fixes possible crash at grid unloading
2011-07-08 03:58:38 +03:00
Laise
178654bbba [11697] fix damage and duration of reflected spells 2011-06-28 18:57:27 +03:00
Den
7dfeddbdef [11672] Implement glyph 42414.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-25 06:22:34 +04:00
VladimirMangos
a97370a7f0 [11645] Fixed work EffectSummonChangeItem, for example, for item. 17223
Also
* Move item comvert code from spell effect to new function.
* Some code style cleanups.
2011-06-18 21:09:42 +04:00
zergtmn
3443a97a28 [11633] Implement function Unit::HasAffectedAura 2011-06-17 22:06:22 +06:00
VladimirMangos
c686697c2d [11623] Implement ClassFamilyMask as wrapper for uint64+uint32 spell family masks
Inspired by patch suggested by darkstalker

Also
* Remove existed enums for family masks as contra-productive for developement.
* Drop one from horrible hack checks in SpellMgr::IsNoStackSpellDueToSpell
  (spells for any fimilies with exactly 0x800 mask) I fail find useful cases
  for current spell data with this check. All cases expected work correct without it.
  If will some problems detected with this please report for fix in less strange way.
2011-06-11 21:20:42 +04:00
mns
20e9484e74 [11622] Really use DB value for creature walking speed after speed update.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-10 22:21:00 +04:00