Commit graph

592 commits

Author SHA1 Message Date
laise
868a4d20a4 [9283] Apply SPELL_AURA_MOD_HEALING_PCT to any healing.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-02 01:56:40 +03:00
tomrus88
b85417df73 Movement packets cleanup. 2010-02-01 17:03:04 +03:00
laise
9aedd3a864 [9273] Implement item 49623 triggered stacking affect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-31 05:36:59 +03:00
XTZGZoReX
0ff9250de2 [9245] Remove CellLock class and all cell-level thread locking.
* It was wasting CPU power as cell-level locking is not needed.
* Future multithreading will be on map-level.
* CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data.
* Some minor cleanup in Cell::Visit/Map::Visit.
2010-01-23 21:36:15 +01:00
Laise
39b7636094 [9244] Implement talent Rime
And apply SPELLMOD_COST to rune spell cast as part this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-23 20:19:13 +03:00
VladimirMangos
546ee35953 [9242] Fixed inconstence in one from recently added AI events name 2010-01-23 14:46:41 +03:00
VladimirMangos
36d90d6040 [9241] Implement AI/EventAI calls at summoned creature die/despawn
* New CreatureAI::SummonedCreatureJustDie called for owner at temporary summoned creature die.
* New EVENT_T_SUMMONED_JUST_DIE (25) for proccess CreatureAI::SummonedCreatureJustDie event
* New EVENT_T_SUMMONED_JUST_DESPAWN (26) for proccess CreatureAI::SummonedCreatureJustDespawn event
* Some code cleanups.
2010-01-23 14:41:38 +03:00
j4r0d
1d305e51d8 [9238] Update spell 15286 work to current funtionality.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-22 20:36:24 +03:00
VladimirMangos
eaecc467d5 [9212] Implement pet speed synchronization with owner only for follow mode.
* This allow pet use own speed (and all speed affects appiedto pet itself) in combat.
* Apply this speed synhronization to minipets/guardians also.
* Also rename Unit::SetSpeed to SetSpeedRate as more close to real functionality.
2010-01-19 03:56:26 +03:00
VladimirMangos
e1d0c1cdba [9209] Finish synchonization walk mode for pets.
* Re-sync at follow mode switches
* Support sync for creature pets

Also
* Attempt fix build at *nix
* Drop unused unut state mask with typo in name.
2010-01-18 14:35:19 +03:00
VladimirMangos
6a2e8064f1 [9208] Big cleanup in UNIT_STAT_* use
* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
  Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
  UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
  And UNIT_STAT_CONFUSED_MOVE for check real move in this state
2010-01-18 11:59:10 +03:00
VladimirMangos
8a03785470 [9198] Replace targeted movegen by 2 new: chase/follow movegens.
NOTE: this is mostly just formal adding 2 movegens with very limited cleanups.
Real result from adding 2 new movegens possible after apply more deep cleanups/fixes
in UNIT_STAT_CHASE/UNIT_STAT_FOLLOW set. But this will need more cereful changes
because we have currently sometime strange dependences and places for set for this flags.
Similar cleanups required for other movegen related flags. Infact i have related patches but
need more testing before apply step by step.
2010-01-17 09:37:11 +03:00
VladimirMangos
2e9bf5ad6a [9197] More propertly update walk mode for player pets.
* Use AddMonsterMoveFlag instead SetMonsterMoveFlags for set walk-mode
* Apply walk/run mode to all copntrolled units (except totems).
* Synchronize walk/run mode at pet creating/loading.
2010-01-17 07:51:00 +03:00
VladimirMangos
c6d378ad70 [9191] Fixed crashes related to recently totem acccess function
* No search if not in world (no totems then)
* Check NULL.
2010-01-16 18:17:53 +03:00
VladimirMangos
6f703bab57 [9189] Fixed build error at *nix. 2010-01-16 08:37:50 +03:00
VladimirMangos
cc062f16ac [9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch.

* Added high-level functions for FFAPvP state set for unit
* Apply FFA PvP to all controlled units also at set, and at summon/load
2010-01-16 05:41:42 +03:00
VladimirMangos
6704929d56 [9186] Templated functions for apply some code to all controlled units.
Also fix some related problems with not updates totems/etc
2010-01-16 04:41:44 +03:00
NoFantasy
23a77a1d36 [9165] Implement speed reduction at creatures DoFleeToGetAssistance
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-13 02:26:08 +01:00
VladimirMangos
a21affbd68 [9160] Implement and use PROC_EX_FULL_BLOCK
It used for spell 31245 and ranks new proc flags.

Original patch provided by dardennf.
2010-01-12 12:07:58 +03:00
MrLama
fc7bb9468f [9151] More paladin spells fixes
* Allow stacking caster effect with target effect at same player for 53736. Provided by KAPATEJIb.
* Allow proc 53736/31801 at melee hits or melee like spell hits

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-12 03:46:52 +03:00
VladimirMangos
7db0ab735b [9140] Let aura after seal do at least one finish tick for stealer.
* Set periodic to fit new aura max duration range for this
* This also prevent crash for soem auras at steal.
2010-01-10 20:16:50 +03:00
laise
a04449c4ad [9139] Implement glyph 40913
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-10 11:15:31 +03:00
VladimirMangos
dc643371c8 [9136] Merge branch '330' - Switch to support client version 3.3.0A
You need extract new dbc.

Also recommended extract new map/vmaps.

And apply ofc sql updates that including character convertion.

Special thanks to TOM_RUS for continue work at next client versions support :)
2010-01-10 07:29:44 +03:00
laise
96fbeab3e9 [9133] Fixes in talent 11129 work.
* Restore after client switch talent triggering.
* Propertly remove triggred auras stack or main spell aura at expire/cancel.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-10 00:45:29 +03:00
VladimirMangos
89939fe7b3 Fixed mangos.sql data for branch and partly related code.
* Drop outdated data for 1535 (old totem summon, now instant area cast)
  Still need implement new way work.
* Restore work broken in branch glyph 45785 with updated functionality,
2010-01-09 06:58:50 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
e5dfeea31e [9090] Implement tick counting in periodic auras.
This can be used for some tick number dependent aura effects.
Also in some cases impossible claculate tickes count pass,
for example for infinity duration auras.
2009-12-31 17:52:43 +03:00
insider42
375aedd611 [9088] Prevent unsummon permanent pets at arenas.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-30 22:04:03 +03:00
VladimirMangos
349b6c0af2 [9081] Fixed DoT damage from 12834 and ranks. 2009-12-29 12:29:19 +03:00
Lightguard
9c98bd92e2 [9077] Fixes for pet work in case mounted owner.
* No unsummon temporary pet at non-fly mounting.
* Implement client side disable pet's action bar for mountted owner time

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

* implement server side action disabled case (action bar modify, aggro reaction and autocast)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-28 16:00:55 +03:00
Insider
81d55d4a41 [9071] Fixed exclusive triggering 2 buff versions for talent 48516 and ranks.
(based on commit acac608)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 22:57:55 +03:00
VladimirMangos
7047d2c42c [9069] Drop outdated code.
Thanks to KAPATEJIb for reporting.
2009-12-25 22:27:23 +03:00
VladimirMangos
e583f543a2 [9066] Small cleanups in spell code.
Mostly avoid unclear "lost" break case
2009-12-25 21:05:11 +03:00
darkstalker
67dd48e2d4 [9061] Fixed SPELL_AURA_MOD_CRIT_DAMAGE_BONU (163) use in calculations.
* Renamed from SPELL_AURA_MOD_CRIT_DAMAGE_BONUS_MELEE
* Also apply to non-melee damage also

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 06:11:10 +03:00
laise
ce30ed1852 [9060] Fixed leave combat by timer.
This also fix some problems with stealth detection.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 05:41:55 +03:00
nos4r2zod
d990644151 [9057] Implement some damage related spell attributes support.
* SPELL_ATTR_EX4_STACK_DOT_MODIFIER
* SPELL_ATTR_EX6_NO_DMG_PERCENT_MODS

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 18:31:03 +03:00
VladimirMangos
5e081196b1 [9049] Additional fixes for talent 17056 and ranks.
Thanks to Sarjuuk for clarify existed problems and help in prepare fix.
2009-12-23 19:48:14 +03:00
MrLama
d432c34307 [9045] Implement talent 48539 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also some typos in mangos.sql field order fixes (sql updates in past ahe been correct)
2009-12-22 00:16:31 +03:00
VladimirMangos
15de428242 [9037] Cleanups in spellmode apply code.
* Add constructores for spellmode creating instead explcit fields init
* Use uint32 for family mask 2 instead unneded uint64

Also drop one from manual applies for uno-existed now spell.
2009-12-20 19:47:14 +03:00
yad02
9d0e943488 [9036] Typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 13:07:20 +03:00
Splinter
54caf1129d [9032] Correctky cast rank 2 mana regent triggred effect for 53228 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 00:55:53 +03:00
laise
0c636c6e3e [9025] Implement talent 63373 and ranks.
Idea with AddTriggeredSpell use suggested by darkstalker.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 06:29:17 +03:00
freghar
a13fa7f873 [9006] Trailing whitespace cleaning
Sorry for a (bit) delayed commit.

Signed-off-by: freghar <compmancz@gmail.com>
2009-12-16 15:38:08 +01:00
Splinter
ffd713cc55 [9004] Drop dead code case
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 17:11:01 +03:00
VladimirMangos
be79375b56 [8994] Re-implement remove auras from channeled target
* Old way have problem with auras that have last tick avent at one from caster/target:
  depndent from auras update order in caster/target pair ti can wrongly not triggered.
* Fxied possible problem with remove same spell non-caster auras at target/caster at spell cast cancel
* Also fix memory lost in old deleted auras cleanup.
2009-12-15 18:50:45 +03:00
VladimirMangos
2defba515e [8991] Merge 2 switch in Unit::HandleProcTriggerSpell 2009-12-14 17:06:40 +03:00
Arthorius
4e55757a94 [8987] Allow swap spell and command/reaction in pet action bar.
* Also prevent command/action drop from action bar
* Pet action bar will recetn at this revision use single time for all pets.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-13 23:04:12 +03:00
Ebrithil
cbb5143348 [8985] Remove morph from spells including aura SPELL_AURA_MOD_PACIFY_SILENCE
This fix at damage transformation remove for spell 51514/47585 and ranks.

Thanks to KAPATEJIb for prepare compatible version for current sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-13 21:23:57 +03:00
VladimirMangos
1d608c482f [8978] Fix wrongly apply weapon damage mods to broken weapon. 2009-12-12 21:12:43 +03:00
Maxxie
d897f55970 [8975] Spell 34914 and ranks will deals damage at dispel.
(cherry-picked from commit 6ff5b6a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-12 07:43:23 +03:00