Commit graph

808 commits

Author SHA1 Message Date
Laise
6a597ae755 [11708] add negative auras, channeled and regeneration spells immunity for totems 2011-07-03 12:26:53 +03:00
VladimirMangos
78991c1131 [11700] Implement SPELL_AURA_DETECT_AMORE (170)
For example used by item 35125.
2011-06-29 17:52:01 +04:00
Schmoozerd
d679c83884 [11695] Implement spell 24780 (switching target every 10s)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 17:24:53 +04:00
Den
9c186a25be [11684] Hunter T7 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 16:28:09 +04:00
VladimirMangos
52b3f66b38 [11683] More consitence use m_target for DestroyItemWithOnStoreSpell call in aura.
This don't must be cases when caster != m_target but anyway not reason have
not nice look code.
2011-06-27 01:58:03 +04:00
Den
d395df0d06 [11671] Druid t8 Restoration 4p bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-25 05:35:12 +04:00
VladimirMangos
04a469f393 [11670] Implement in proper way ITEM_SPELLTRIGGER_ON_STORE (5)
Item spells with this trigger mode expected casted at item add
to inventory/equip slots (exclude bank), and spell auras (if any)
applied while item in like slots. Item expected destroyed at aura
remove by some reason.

Implementation note: because 2 step way item moves from slot to slot
related auras not removed at internal RemoveItem call and removed only
at directly item destroy/remove from player function calles, or at StoreItem
(if item added to not appropriate slot). So need in future careful with new
RemoveItem call cases.
2011-06-24 22:55:58 +04:00
Warlord123
85a13fcc33 [11666] Warrior T10 Protection 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:53:52 +04:00
Amaru
405eb1f02a [11665] Mage T10 2P Bonus trigger only at proc charges aura remove.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:13:06 +04:00
zergtmn
0ebfe92e41 [11654] Implement periodic dummy aura 62566 2011-06-19 21:49:57 +06:00
zergtmn
83de12fa75 [11653] Add script effect of spells 62521, 62524 and 62525 2011-06-19 21:21:17 +06:00
Den
17b7e3b32c [11649] Make visible final duration of talent 31221 and ranks effect. 2011-06-19 03:32:32 +04:00
DaC
92e0b5941f [11644] Sets rage to zero and energie to 100% when entering battleground and arena
Move related code to Aura::HandleArenaPreparation (un-)apply code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-18 20:34:44 +04:00
zergtmn
b4ec3f3fd9 [11638] Implement additional damage on expire 29865 and 55053 auras 2011-06-18 01:10:04 +06:00
VladimirMangos
f7e3b33eaf [11635] Revert "[11615] Apply normal stealth at expire spell 1856 and ranks"
This reverts commit 1c0bd32c22b7d0116fab8d32b3b7e4f92c039b38.

Thanks to SeT for providing proves for commit wrong way work.
2011-06-17 21:04:59 +04:00
zergtmn
8a4230d765 [11634] Periodic damage from spell 1943 and ranks can produce critical strikes 2011-06-17 22:35:31 +06: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
VladimirMangos
437a7ad54c [11616] Restore itemset 632 2p bonus affect work.
One more point for restore `spell_affect` table.
2011-06-06 18:19:58 +04:00
VladimirMangos
0d9e3c8e43 [11615] Apply normal stealth at expire spell 1856 and ranks
Instead current at apply mode.
2011-06-06 17:38:05 +04:00
Den
10c4da4fef [11594] Implement glyph 45747
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-04 14:15:06 +04:00
breakwater
ce14b28ba4 [11552] Implement aura SPELL_AURA_STOP_NATURAL_MANA_REGEN (294)
Also partly implement using it spell 62692.

FIXME: Some spells expected to be working for target under spell 62692 effect
       not working. This need additional research and fixes.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-28 05:24:36 +04:00
zergtmn
e204c246f4 [11551] Cast 64455 with full stack amount 2011-05-27 18:54:31 +06:00
VladimirMangos
c5b6cc0b37 [11543] Fixed change form to same (powershifting)
Inspired by patch provided by darkstalker.

Client expected receive form field change at form switing including case with switch to same form.
In fact problem too good mangos optimization in part avoid send unchanged values in update fields.

* Added function Object::SendForcedObjectUpdate()
* It used in form apply code for make sure received by client non-form applied state in middle form shifting state.
* It also used for fishing code when client also expected received some update fields chnages before
  animation update. New function send update to all all client instead before used code that send it to fishing player
  and resend later one more time to other players and player itself as normal update.
2011-05-26 17:18:47 +04:00
VladimirMangos
81984732a3 [11542] Replace partly spell list by recently added function in one more place. 2011-05-26 04:22:24 +04:00
NoFantasy
4b919b1f32 [11537] Nerfing the word "Redunction" and remove one letter, to Reduction.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-25 10:43:45 +02:00
SilverIce
4bb2d662a2 [11536] Override Unit::SetPhaseMask for players, move some functionality from Aura::HandlePhase 2011-05-25 04:20:50 +03:00
VladimirMangos
78a4460501 [11535] More wide use IsFitToFamilyMask
Simplify check for one from cases base at recheck spell data.
2011-05-25 04:06:55 +04:00
breakwater
d02bee5127 [11530] Fixes for talent 47201 and ranks
* Update triggering source spells.
* In code overwrite wrong family mask data for spell mod.
  If more cases will be maybe will better restore spell_affect table.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-24 06:00:47 +04:00
NoFantasy
569d7cdc42 [11518] Add script effect of spell 48810 and 48811, dummy aura of 48143
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-21 08:15:12 +02:00
przemratajczak
95b980690a [11515] Implement spell 62679.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 04:21:25 +04:00
przemratajczak
927a577590 [11514] Periodic summon spells 53035, 53036, 53037.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 00:04:31 +04:00
VladimirMangos
8022cef6a7 [11512] Fixes for channeled spells casting.
* Set as expected caster channeling target to created dynamic object
  at persistent aura area spell casts for channeled spell.
* Select correct caster/target for triggered spell in case channeled perioding trigger aura.
2011-05-20 22:53:30 +04:00
VladimirMangos
0564b622c2 [11510] Implement SPELL_AURA_MOD_PARRY_FROM_BEHIND_PERCENT (288) and related spell 19263.
Original patchs provided by KAPATEJIb and Roshnak.
2011-05-19 03:50:30 +04:00
NoFantasy
4b00269ccc [11496] Add dummy aura effect (removal) of spell 12774
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-16 19:03:12 +02:00
VladimirMangos
249fb836ca [11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid
Now safe allow this casts in like way after completed convertion to ObjectGuid use.
Also simplify code in result allowed auto cast to uint64.

Please _not_ add new uint64 storages (local and in structures) for guid values.
2011-05-15 22:04:57 +04:00
Xfurry
2355b0bfde [11472] Implement spells 23184/25041 periodic trigger code.
Also implement classes PlayerListSearcher and AnyPlayerInObjectRangeWithAuraCheck

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-12 00:09:04 +04:00
breakwater
a2b6a6fde5 [11469] Fix unapply of SPELL_AURA_MOD_THREAT auras when caster dies or logs off
Signed-off-by: zergtmn <zerg@myisp.com>
2011-05-11 18:43:03 +06:00
VladimirMangos
ef6a48fe03 [11465] non-ObjectGuid guids in random places.
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
2011-05-10 21:27:49 +04:00
VladimirMangos
44f2c26389 [11459] More ObjectGuid using in Aura/SpellAuraHolder code.
Also fix build in PetAI code. Thanks to rsa for fix code.
2011-05-09 23:17:39 +04:00
NoFantasy
6d28c7dfd0 [11445] Correct a possible crash, if caster of aura has disconnected after aura applied
A small code adjustment in addition, no need for caster at aura remove.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 19:48:40 +02:00
NoFantasy
4c3b61d4f5 [11443] Implement SPELL_AURA_MIRROR_IMAGE (247) and related receive/reply packets
Inspired by different patches posted in forum, thanks guys for the help it was :D

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-08 18:58:01 +02:00
VladimirMangos
06ba42ccba [11435] Fixed IsPositiveEffect triggered spell case and some cleanups
Mostly found in time 400 update.
2011-05-08 01:43:02 +04:00
NoFantasy
c1ab3c4be4 [11406] Add dummy aura effect (removal) of spell 42454
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-29 09:45:08 +02:00
NoFantasy
b4a22a6879 [11404] Revert [11403] Adjust dummy aura of spell 51329.
Place spell where it belongs instead, along with other spells doing the same. Spell will add/remove the correct flags this time.
git blame: Hasty research, lack of coffee, broken brain

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-28 12:14:52 +02:00
NoFantasy
4ca4118d5a [11403] Adjust dummy aura of spell 51329, apply/remove only expected flags.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-28 11:45:35 +02:00
TOM_RUS
730a907252 Use enum InventoryResult as return type for few functions. 2011-04-24 02:48:35 +04:00
NoFantasy
c4f2b30205 [11387] Add dummy and script effect of spell 45958 and dummy aura of spell 45963
Thanks dpedroia15 for parts of 45958.
Note: spell 45958 may be processed further with DB table spell_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-20 23:41:00 +02:00
zergtmn
2835aa5f20 [11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
2011-04-20 23:23:47 +06:00
Ambal
5a22b8c6dd [11368] small code refactoring: use container typedefs instead of direct container declarations to simplify code.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-16 13:42:40 +03:00