Commit graph

310 commits

Author SHA1 Message Date
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
Laise
daf7041231 [10522] Fix periodic procs - spells that require periodic healing to proc need to be defined in spell_proc_event with procEx PROC_EX_PERIODIC_POSITIVE, by default all procs without it are negative 2010-09-23 14:27:26 +02:00
VladimirMangos
acd0716297 [10432] Rename ASSERT -> MANGOS_ASSERT and related fixes
ASSERT hard use in predictable way because diff. 3rd party libs code
redefine it inf different ways and hard make sure that used in end
of mangos define version. This is real detected problem make some
expected assert checks ignored and so bugs not detected as expected from code.

In addition made related changes:
* Common.h header expected to be first include in any src/game/header except most simple cases.
* Related FILE.h header expected to be first include in FILE.cpp
* Fixed some absent includes and type forwards for safe build without PCH enabled.
* Avoid using MANGOS_ASSERT in src/framework code
2010-09-02 05:13:16 +04:00
VladimirMangos
7df3f06d87 [10430] Improve detection removed ranks for spell in spell_chain 2010-08-31 19:04:39 +04:00
m4cm4n
a1ada85db1 [10426] Remove not needed checks from IsNoStackAuraDueToAura
Signed-off-by: Laise <fenrisse@gmail.com>
2010-08-30 10:19:41 +03:00
Laise
694bdd43e3 [10425] Add comment in Aura::CanProcFrom 2010-08-30 10:07:58 +03:00
VladimirMangos
a62d9e2817 [10423] Load most spell chains data from SkillLineAbility.dbc
* Output error for redundent data in table
* Drop detected data from `spell_chain`
2010-08-30 07:37:33 +04:00
VladimirMangos
0d363cc77a [10419] Check redundant single rank spell data in spell_chain.
Also, add empty lines to end of file and apply code style tosome sql updates.
2010-08-29 07:33:40 +04:00
Laise
1f2734f177 [10417] Fix Battle/Guardian elixirs stacking 2010-08-28 09:33:03 +03:00
NoFantasy
25d9fd265b [10293] Correct a not exitan...non-existin... a word that is often spelled wrong
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 18:26:08 +02:00
Dennis
e1ff3579c9 [10275] Fix initialization of DoSpellBonuses
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-07-26 22:51:36 +02:00
VladimirMangos
6a4cae890e [10273] Avoid some redundent and recursive calls to SpellMgr singleton. 2010-07-26 16:51:52 +04:00
tehmarto
631a6a5e59 [10234] Fix typo in IsNoStackAuraDueToAura() Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org> 2010-07-20 22:32:48 +02:00
crackm
7bb8b2bedb [10217] Update playercreateinfo_action/playercreateinfo_spell
* Drop some food action buttons
* Drop attack spells for caster classes
* Use expected simlifed spell version 20154 (it replaced by full version at learn spell 53408 and similar)
  In code used helper code for support 2 versions as fake non-stacking ranks.
* Some other old "max ranks" of talents and spells now are permanent bonuses known from start (only "max rank" for spell exist)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-18 12:26:12 +04:00
VladimirMangos
464a841c81 [10183] Better tracking stack checks with include one not catched non-stacking case.
Spell 41446 expected to be non-stacking with other trackers.
2010-07-12 19:32:05 +04:00
VladimirMangos
6e3f51b1b6 [10182] Allow stacking some tracking bufs, and prevent stacking some other.
For example item 25548 buff expected to be allowed stacking
but spell 19885 not allowed.
2010-07-12 19:02:43 +04:00
Laise
a32b3063a2 [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
zerg
3dbb8385b5 [10130] Proper stacking 30108/348 anr ranks from 3.2.x
(based on zergtmn's repo commit 7588ca9)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-30 22:34:59 +04:00
VladimirMangos
81851074ad [10075] Attempt use more expected by result buffs downranking algo.
* In small rate more fast
* Not affect non-buff ranked spells like 10909
2010-06-18 04:21:34 +04:00
VladimirMangos
07a931e141 [10074] Add IsPassive(SpellEntry*) function and use in cases wjern entry already known.
Some other small code cleanups
2010-06-18 02:17:51 +04:00
VladimirMangos
64f959fb82 [10050] Implement apply non-trade slot item enchanting at trade complete.
Base at original patch provided by arrai.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-11 22:46:16 +04:00
VladimirMangos
8e9a201ea0 [10044] Generate talent related spell_chain data instead storing its in table.
* Drop now redundant part of data from `spell_chain`.
* Allow store in spell_proc_event cusom ranks data for ppm for chained ranks.
* Drop now redundant part of data from `spell_proc_event`.
2010-06-08 01:51:32 +04:00