Commit graph

331 commits

Author SHA1 Message Date
Lightguard
b5e50d5c2b [11803] Make SPELL_EFFECT_QUEST_COMPLETE always positive
This fixes spell 25201
2011-09-24 18:12:53 +02:00
Schmoozerd
0bb3a4c84d [11791] Implement spells 69048, 69051 and 69023
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-11 12:33:32 +02:00
Laise
31e983a692 [11762] move IsCastEndProcModifierAura to more fitting place 2011-07-30 16:48:40 +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
VladimirMangos
75cfbb41c8 [11698] Fixed spells 50756 and 50758 stack check
Original patch provided by Xfurry.
2011-06-28 20:15:18 +04:00
VladimirMangos
387a15f1a1 [11692] Fixed damage/heal amount from some triggered HoTs/DoTs. 2011-06-28 15:22:13 +04:00
PSZ
bb9157c6fc [11691] Typo in select proper spell difficulty function 2011-06-28 12:25:25 +04:00
Den
9c186a25be [11684] Hunter T7 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 16:28:09 +04:00
elecyb
2776f55d7a [11652] Diminishing returns for some paladin abilities.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-19 06:08:53 +04:00
zergtmn
479cfcf84a [11639] Limit spells 74410 and 74411 only to bg and arenas 2011-06-18 01:37:33 +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
PSZ
3a60c4ae3b [11610] Select proper spell difficulty subtitution.
Fix mostly affect cases when absent 25-man difficulties spell version.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-05 21:52:56 +04:00
Den
f99476cad5 [11607] Spell 46221 is debuf
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-05 20:16:24 +04:00
VladimirMangos
c5064a73b0 [11601] More limited way attempt fix spell 1008 and ranks 2011-06-05 15:15:02 +04:00
VladimirMangos
6833f4c564 [11600] Revert "[11577] Spell effects with IsExplicitPositiveTarget always positive."
This reverts commit bb16c4d956bff20c934b1e8207732a7268456152.
2011-06-05 13:59:30 +04:00
VladimirMangos
c870ef324d [11590] Cleanups for barGoLink
* Rename barGoLink -> BarGoLink as expected by mangos code style
* Add uint32/uint6 constructor versions for BarGoLink,
  and remove lot casts required before for BarGoLink use
2011-06-03 12:02:49 +04:00
VladimirMangos
108a167c46 [11587] Use SkillRaceClassInfo.dbc data for check spell training.
* Show race/class specific min level in trainer list (for weapon master for example)
  and use it for check spell traing possibility.
* Hide for specific race/class some spells marked by flag  ABILITY_SKILL_NONTRAINABLE
  This possible in cases when spell available for race/class but learned from talent/etc
  and then don't must be show for race/calss pair in trainer list. Single case in 3.3.5a.
* Add to code tables for profession ranks for seelct correct rank related reqlevel
  and check DB side data for it. Note: DB reqlevel values redundant for profession rank
  spells now.
* Use for reqlevel selection (if DB value not provided) learned spell insteed cast-spell
  spellLevel field. This let in more cases select training reqlevel without provided DB value.
  For LogFilter_DbStrictedCheck = 0 mode output data about like redundant reqlevel values
  in traner tables.
2011-06-02 09:55:25 +04:00
Amaru
6dd7f784cf [11581] In IsPositiveEffect triggered case check only existed effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-01 06:38:17 +04:00
VladimirMangos
c462ee5834 [11577] Spell effects with IsExplicitPositiveTarget always positive.
This fix for example spell 1008 buff state.
2011-05-31 13:24:00 +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
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
VladimirMangos
dcac3b8fa0 [11525] Fixed stacking talent 46951 and ranks triggered spell with glyph 43424 triggered. 2011-05-23 07:07:50 +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
breakwater
7f957eb88e [11498] Allow stacking some paladin DoTs at target.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-17 00:54:11 +04:00
NoFantasy
94080a2d77 [11474] Adjust text of some log messages related to spell target
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-12 08:21:47 +02:00
Most_Mangos
ad4c234e04 [11450] Aloow stacking some warlock DoTs
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 03:03:03 +04:00
zergtmn
d0a0479749 [11441] Add positiveness detection for SPELL_AURA_MOD_RESISTANCE auras 2011-05-08 15:49:42 +06: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
zergtmn
4687fa8cb4 [11299] Handle aura durations in SpellAuraHolder
- Unit::CalculateSpellDuration split into two functions
    - CalculateSpellDuration taking into account combo points and caster-side spell mods
    - Unit::CalculateAuraDuration taking into account target-side spell mods
- Diminishing is now applied before duration reduction mods
- Implement saving per-effect periodic timers to DB (required for auras affected by haste)
2011-03-30 23:29:01 +06:00
VladimirMangos
989d229968 [11288] Check IsPositiveEffect in IsPositiveSpell only for existed effects.
Thanks to NoFantasy for problem research.

Also make IsPositiveEffect use SpellEntry* arg instead spell id.
2011-03-26 03:10:26 +03:00
NoFantasy
dae28ae93a [11287] Add dummy effect of spell 62105 and dummy aura effect of 62248
Note: spell 62105 are still considered to be negative, despite explicit exception added in IsPositiveEffect and will unexpectedly put caster in combat.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 00:16:09 +01:00
Hundekuchen
f1a880a4ed [11257] Fix overwrite spells 33649 and 20572, other cases with same icon.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-16 03:36:57 +03:00
NoFantasy
f98a9e4eee [11084] Add dummy auras for spells 53790,53791,53792 and 41099,41100,41101
Note: two of them are still missing data for equipment.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-30 16:48:47 +01:00
NoFantasy
1824dd767f [11057] Add script effect of spell 48917
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-21 12:19:27 +01:00
VladimirMangos
5099b9133c [11026] Implement damage reduction part of spell 50720 2011-01-17 18:05:27 +03:00
VladimirMangos
62da77153d [11025] Fixed build. 2011-01-17 15:42:10 +03:00
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
Lynx3d
77d8b41cc4 [11022] Create template for loading spell ranks from DB to allow better code re-use. 2011-01-17 12:36:25 +01:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
NoFantasy
7751579303 [10855] Add TARGET_AREAEFFECT_GO_AROUND_DEST(52) (renamed from TARGET_AREAEFFECT_CUSTOM_2)
Target selects all gameobject around destination, limited by adding spell with a corresponding gameobject entry in database table spell_script_target.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-11 10:34:46 +01:00
NoFantasy
4aa0ab7c40 [10845] Add dummy effect of spell 49634 and dummy aura of spell 56511
note* spell will need data in spell_script_target to work properly.
note* the effect of 56511 does not work, see comment in code for details (code added in any case, to not forget the problem)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 10:58:54 +01:00
NoFantasy
1b4209699f [10842] Allow fill DB table spell_script_target for TARGET_AREAEFFECT_INSTANT(7)
Without any database entries for spell, spell will work like before.
Valid targets filled to database can only be creature type (corpse or alive).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-08 16:17:50 +01:00
insider42
f7b4b88e02 [10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta

Note: From patch excluded talent 44543 and ranks stacking code.
      It look like need another implemention different from suggested,
      or at least more research.

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

In patch added enum IgnoreUnitState and related checks now more cheating protected.
2010-11-21 01:42:25 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

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

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
Ambal
f67d89f109 [10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-16 21:08:28 +02:00
tomrus88
76dfdd336f Backports from 400 branch. 2010-11-15 18:01:45 +03:00
VladimirMangos
10d3d3ce24 [10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
zerg
839104e0cc [10674] Show some SPELL_AURA_MOD_DODGE_PERCENT auras as debufs as expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-02 04:59:54 +03:00
NoFantasy
365c4a19e0 [10639] Making dummy effect of spell 54530 be positive effect.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-24 11:18:46 +02:00
zerg
2fa5fa43bd [10594] Use equal_range instead of lower_bound/upper_bound pairs
(based on zergtmn's repo commit 0499169)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-09 01:37:57 +04:00