Commit graph

454 commits

Author SHA1 Message Date
hunuza
23618d66ea Implement DK talent 49471 and ranks.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-27 22:21:11 +02:00
hunuza
302afbc40f Allow weapon procs in druid shapeshifts.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-27 12:24:34 +02:00
ApoC
e2556b1825 [8540] Revert "[8538] Fixed spell 63375" due to patch incorrectness.
Revert suggested by Vladimir.

This reverts commit 6217b913c35563f68ea3c414367cd7ac84236b3e.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-26 19:21:52 +04:00
KAPATEJIb
8c276365ba [8538] Fixed spell 63375
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-26 19:21:50 +04:00
Maxxie
3c89d50d10 [8530] Correctly restore powers with energize-effect spells like Shadowfiend or Mana Tide Totem
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-26 19:19:57 +04:00
tomrus88
258e19a4a3 Merge commit 'origin/master' into 320 2009-09-22 18:14:06 +04:00
Shendor
9a7708491f [8525] Implement glyph 45775
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-22 01:17:19 +04:00
Ambal
cfea99ea62 [8524] New cell search algorithm implemented. You can now choose different visibility distances on continents, in BG/Arenas and instances.
Please, update your config files and check new options:

Visibility.Distance.Continents    = 90
Visibility.Distance.Instances     = 120
Visibility.Distance.BGArenas      = 180

Thanks everyone involved in patch tests!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-21 23:25:29 +03:00
Win32
7768d5f3e7 [8521] Implement glyph 42744
Patch added with improvement in code suggested by Shendor.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-21 17:25:43 +04:00
Shendor
4254580141 [8520] Limit telent 49182 and ranks triggering expected:wq runes cooldown case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-21 15:23:17 +04:00
KAPATEJIb
e4ed2ce29c [8518] Implement glyph 42745
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-21 02:11:52 +04:00
VladimirMangos
9b57017256 [8517] Implement glyph 42747. 2009-09-21 01:17:59 +04:00
pasdVn
b42082bc0c [8510] Fixes for healing crit calculation code
* Implement talent 63504 and ranks
* Allow work target dependent healing crit chance mods
  This let work existed code for talent 57470 and ranks

(cherry picked from commit eadc239846d6dc5db582908458421411995d7974)

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

Also
* Drop oudated functionality code for 47558 and ranks (new functionality code already added)
2009-09-19 18:28:44 +04:00
nos4r2zod
c361b0dc0b [8509] Some absorb shield aura fixes for specific spells.
* Apply expected healing bonus to spell 53601.
* Allow stacking spell 62600 and 22842 effects at caster.
* Update charges for absorb shield with charges and preopertly expire it at last charge.
  This fix spell 62600 effect remove at next damage.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-19 16:10:10 +04:00
tomrus88
2d86aa4535 Misc fixes. 2009-09-14 18:11:15 +04:00
dele
c45362a9fc [8498] Implement talent 53234 and ranks.
(cherry picked from commit 510b81f53bbe59beccbc113a802b3f9b1e669e3a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-14 12:20:48 +04:00
VladimirMangos
67d4335614 [8497] Fixes in talent 53563 work and other area auras spells.
* Support mutiply beacon buffs at same target (as will be in 3.2.x) in triggering part.
* Bonus heal caster expected original paladin, and used his heal bonuses, LoS not required for bonus heal.
* Fixed bug with not apply not-caster affected area spell (hostile area spell or talent 53563)
  to another caster with same area aura active. Correctly remove only specific caster area aura at expire.
* Not show area spell icon for telent 53563 at beacon for this aura.
* Allow stacking dummy auras from diff casters, check formal aura types for effect at add aura stacking check.
  Last important for area auars that can have SPELL_AURA_NONE in modifier data instead formal effect auars at caster.
2009-09-14 08:45:43 +04:00
VladimirMangos
610703c14b [8492] Implement talent 53563.
Original patch suggested by Arthorius.
Added data in mangos_spell_check to remember requirement update code for 3.2.x support in future.
2009-09-12 11:04:03 +04:00
KAPATEJIb
e0c319ef33 [8490] Fix typo in constant name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-12 04:06:08 +04:00
nos4r2zod
d91f2c2c35 [8487] Fixes in paladin seals and related spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 06:08:40 +04:00
ApoC
71e736abc6 [8478] Removed dependency on getMSTime() for last mana use.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-09-06 01:40:22 +02:00
balrok
bd30769dec [8475] fixed some gcc-warnings
all warnings from Wunused
and some from Wall

cause unused may be most interesting for some:
they were in following files:
src/game/Level2.cpp
src/game/Map.cpp
src/game/SpellAuras.cpp
src/game/Unit.cpp
src/mangosd/Master.cpp
but i guess mostly someone just fogot to remove this code

for some unsigned vs signed warnings i used:
ack "for.*int .*size\(\)" | ack -v uint

also note for coding:
if you do something like
    if( a && b || c)
just place parentheses around (a && b) && always will have
precedence over || but without parentheses this could be overseen
quite fast (at least that's my guess why gcc will warn for this)

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-09-05 13:47:47 +02:00
sixsixnine
63e7c092f1 [8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases.
(cherry picked from commit 7efab7fd38c3a753e967648ca8ef1f2cdfbac76c)

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

With some fixes and rewrites.
2009-09-04 02:16:17 +04:00
Lutik
ab9b738e54 [8454] Implement aura SPELL_AURA_MOD_TARGET_ARMOR_PCT.
This fix work stance 2457, talent 12284/13709 and ranks, partly talent 61154 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-02 18:48:05 +04:00
VladimirMangos
69fbe1e82f [8451] Implement talent 47236 and ranks.
Added changes base at merge of patches suggested by pasdVn and Astellar.
2009-09-02 06:43:00 +04:00
VladimirMangos
c8b717ab7d [8449] Deprecate healing/damage item mods and merge internal data in to spell power.
* Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE
  and drop support code.
* Merge healing/damage base spell bonus fields and function to spell power field/function.
2009-09-01 22:45:56 +04:00
NoFantasy
a9dea03e09 [8443] Implement use of UNIT_FLAG_OOC_NOT_ATTACKABLE for creature.
Creature with this flag will no longer be attackable by other creatures, and if by any reason it enter combat, flag is removed.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-31 16:46:19 +02:00
VladimirMangos
16b617c3c3 [8429] Not allow stacking SPELL_AURA_PERIODIC_ENERGIZE from diff casters. 2009-08-27 16:10:43 +04:00
VladimirMangos
fdb2842f60 [8425] Implement SPELL_EFFECT_LEAP_BACK and spell 781
* Move CMSG_MOVE_KNOCK_BACK_ACK (player case) to Unit::KnockBackFrom
* Implement creature case, most at hack way currently :(
  Need information about expected server packet, and possible some disorientation movegen apply at short time.
* In adition of spell 781 implement related creature versions.

* Fixed warnings spawn at reading CMSG_MOVE_KNOCK_BACK_ACK, CMSG_MOVE_HOVER_ACK, CMSG_MOVE_WATER_WALK_ACK.
2009-08-27 05:27:45 +04:00
VladimirMangos
45dd7140b5 [8422] Implement far sight like spells work for long distance.
* Added basic infrastructure for visibility update in case difference player and current view point.
  Just for note: seletect additional arg way beacuse repeatable search object will slow but store pointer will not safe,
  so use middle case: get view point pointer early as possible at visibility updates.
* Implement dynamic object and creature activisation while it's target of far sight spell effect
* Use this for SPELL_AURA_BIND_SIGHT, SPELL_AURA_FAR_SIGHT and SPELL_EFFECT_ADD_FARSIGHT.
* Note2: some spyglass like spells let look _around_ at long distance, this hard implement in current grid loading system
  Without additional changes and not implemented (you will see empty area without creatures in likes case)

* Also fixed warning spam at CMSG_MOVE_SET_CAN_FLY_ACK receive by use proper packet sructure reading.
2009-08-26 08:30:40 +04:00
VladimirMangos
9f01551210 [8414] Re-implement [8406] in more clear and working way.
* Rename IsSingleFromSpellSpecificPerCaster to IsSingleFromSpellSpecificPerTargetPerCaster for clear meaning.
* Rename IsSingleFromSpellSpecificRanksPerTarget to IsSingleFromSpellSpecificSpellRanksPerTarget for clear meaning.
* Add new IsSingleFromSpellSpecificPerTarget for case single spell specific aura allowed to be at target from any caster and use it.
  Move some spell psecific checks (mostly sellf casted) from IsSingleFromSpellSpecificPerCaster to new function.
2009-08-24 06:44:15 +04:00
VladimirMangos
f3930cb06f [8406] Detect/check stacking of food/drink/elental shileds as spell specifics.
Food/Drink checks base at nos4r2zod's patch code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-23 03:33:01 +04:00
VladimirMangos
4826a192a0 [8404] Prevent triggering from deleted auras.
This possible at recursive spell event triggering case.
2009-08-22 07:42:59 +04:00
VladimirMangos
9eb5a3eea1 [8394] Fixes for some non-self only positive spells.
* Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
* Some related fixes for pet spells with target mode TARGET_SINGLE_FRIEND_2
* Implement original caster bonus part of spell 54646.
2009-08-20 00:26:34 +04:00
Den
055aa46a8f [8392] Implement 47569 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-19 07:05:44 +04:00
VladimirMangos
74d27294aa [8381] Some refactoring work in Unit::m_currentSpells code.
* Restrict access, use enum args, move some repeated code parts to function.
* Make m_selfContainer set only part of Unit::SetCurrentCastedSpell
2009-08-18 02:12:56 +04:00
VladimirMangos
a6503ac0a4 [8372] Prevent remove triggered spell auras by later applied parent spell auras. 2009-08-14 18:48:00 +04:00
VladimirMangos
8b2517c7a8 [8367] Fixed build after [8366]. 2009-08-13 23:18:24 +04:00
MeRclLy
83a95a2a5a [8366] Prevent double heal effect casting with triggering talent 31876 and ranks.
Cast only at client casted judgements (and ignore triggered additional affects from seals)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 22:37:26 +04:00
VladimirMangos
0bbc496192 [8357] Use less hacky Spell::AddTriggeredSpell call for spell 33076 and ranks jump animation cast 2009-08-12 17:49:37 +04:00
VladimirMangos
74a9624cc3 [8354] Update kill credit for normal creature entry including heroic case. 2009-08-12 14:56:01 +04:00
VladimirMangos
9f6dfa282f [8353] Prevent reporting about wrong stacking in log for spell 33076 and ranks.
Using new delayed aura deleted functionality remove source aura before cast triggred aura.
2009-08-12 05:21:32 +04:00
VladimirMangos
3c297ac8c4 [8340] Implement talent 29447 and ranks.
Original patch provided by raftom.
More compact spell filter code provided by Sarjuuk.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 15:02:17 +04:00
XTZGZoReX
5c2ae96e38 [8338] Use expected constant name instead explicit value.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 11:01:53 +04:00
VladimirMangos
6b25da27dd [8336] Prevent apply item 34678 damage effect to cast target if it's friendly.
Current combat target or just selection will be used instead if it not friendly.
2009-08-09 10:00:59 +04:00
VladimirMangos
fe4b057dc2 [8334] Small cleanup in magic shield back damage code.
Also misc variable use consistence in aura hander (no any affect expected).
2009-08-09 08:16:20 +04:00
VladimirMangos
c8cc9b28f8 [8329] Implement aura deleting delay in case aura lock as currently used.
* Use counter for aura uses lock for recursivly mark as used in some cases.
* At aura remove add aura to deleting delayed auras list for aura target.
* Remove now unneeded hacks from aura handlers and aura tick code (maybe not all found yet)
* Use new aura delete locking for simplify proc spell event code.
* Prevent apply aura boost spells if aura deleted while adding to target by triggered spells.
* Re-implement aura list updating at auras update for target to better way skip
  removed from aura list auras while auras update.
2009-08-08 11:31:29 +04:00
VladimirMangos
bb2aca5217 [8325] Restore BG spirit guids work after [8308]-1. 2009-08-06 20:09:21 +04:00
NoFantasy
4574d64008 [8323] Check for unitState follow in selectHostilTarget to prevent unexpected enterEvadeMode.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-06 10:58:11 +02:00
VladimirMangos
a1973ced28 [8321] For additional atatck target ignore source spell target instaed auto-attack target.
This is fix targets selection in special cases for 13877, 26654 and ranks.
2009-08-06 02:01:17 +04:00