Commit graph

310 commits

Author SHA1 Message Date
VladimirMangos
86439e14ad [10015] More redundant data check in spell_proc_event 2010-06-01 04:45:50 +04:00
VladimirMangos
93624bb496 [10011] Check redundent procFlags value in spell_proc_event. 2010-05-31 12:27:47 +04:00
insider42
2681cd7de7 [9979] Update max cooldown length req. for spell casting at arena.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-27 00:37:03 +04:00
LordJZ
92b7920cbb [9908] Add missing break. Not affect current code work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:38:34 +04:00
VladimirMangos
1f741a16b3 [9898] Implement redundent values check in spell_bonus_data
Also do table content cleanup base at added feature.

Original check code provided by nos4r2zod.
2010-05-15 11:25:21 +04:00
nos4r2zod
e880e7d236 [9895] Move DotFactor+GetSpellCastTimeForBonus call to CalculateDefaultCoefficient
* This coeff used if not spell_bonus_data provided for spell
* Continue prev. commit line expected that creature casts not affected by DotFactor

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:16:02 +04:00
nos4r2zod
4951f846dd [9894] Move GetCastingTimeForBonus and some other code to GetSpellCastTimeForBonus.
Important changes:

* Chaged way caluclation "-5% of total per any additional effect" to percent
  apply instead use raw value that correct only for 3500 cast time spells.
* GetSpellCastTimeForBonus result now alwasy not applied to creature casted spells
  Before it not applied only to instant spells. Please test if this ok in all cases.
* Leech effect modify spell casting time move into GetCastingTimeForBonus and then called
  also for melee spells. But only creature spells exist with melee class damage and its
  not affected by GetCastingTimeForBonus anyway now.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:15:05 +04:00
nos4r2zod
34a1cc31d0 [9893] Fixed some spelling typos in function/structure names.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:14:03 +04:00
VladimirMangos
d04dd4e5bf [9876] Fixed TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER work
TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER expected seelction friendly targets
for spell caster around spell caster (so ignore original caster faction).
This meaning that for begative spell also selected friendly targets for
spell caster object.
2010-05-12 03:33:06 +04:00
VladimirMangos
6fb07911f9 [9862] Defines for some spelentry arrays.
* Move and rename MAX_REAGENTS to DBC Strcuture.h.
  It used only afore access to SpellEntry field and so part of strcuture definition.
* Add MAX_SPELL_TOTEMS and MAX_SPELL_TOTEM_CATEGORIES for same reasons, and use in code.
2010-05-11 00:06:47 +04:00
tomrus88
ff2cda6af1 [9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423)
(based on 400's commit 636cfef)
(based on 400's commit 0bbe3a7)
(based on 400's commit ce86b56)
(based on 400's commit b74c6a8)
2010-05-10 23:45:49 +04:00
Laise
577812ff6e [9828] Fix TARGET_AREAEFFECT_CUSTOM 2010-05-03 11:14:55 +03:00
VladimirMangos
6146e19acb [9805] Fixed lost flight mount/form for GM in old contentes. 2010-04-29 15:32:48 +04:00
Laise
51546e1ff9 [9789] Implement spell selection, for creatures in instances, based on map difficulty 2010-04-24 20:08:18 +03:00
przemratajczak
6398abc725 [9764] Remove outdated code for 15286
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-19 09:18:21 +03:00
tomrus88
9a0545cd05 Merge remote branch 'origin/master' into 330 2010-04-04 15:50:18 +04:00
pasdVn
3d7313a229 [9665] Add another exception to IsNoStackSpellDueToSpell.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-03 10:46:59 +02:00
tomrus88
f2572fdda0 Merge remote branch 'origin/master' into 330 2010-03-31 02:29:02 +04:00
XTZGZoReX
34e56c9978 [9641] Fix typo; IN_MILISECONDS -> IN_MILLISECONDS. 2010-03-30 14:44:57 +02:00
tomrus88
4c8dd37612 Merge remote branch 'origin/master' into 330 2010-03-30 13:06:34 +04:00
XTZGZoReX
51fd11c92c [9638] Replace all C assert()s with MaNGOS ASSERT() macro. 2010-03-29 19:29:42 +02:00
tomrus88
b99f51a984 Fixed bug with professions in trainer list not being marked as known until trainer list re-opened. 2010-03-27 19:41:15 +03:00
Derex
da30ea5ed8 [9522] Implement spells 58600 and 58601 2010-03-05 06:04:43 +02:00
arrai
faa29797f6 [9498] Restored build on *nix 2010-03-01 15:09:39 +01:00
VladimirMangos
4a051e2443 [9496] HomeBind fixes.
* Use area id instead zone id for home bind zone info as expected.
  This will for example proper show capital name in area himebinding for capital; tavern.
* Clarify that player create zone in fact is area (subzone)
* Implement SPELL_EFFECT_BIND for normal homebinding.
  Also support spell target position mode used in 53823/53821 spells
* Add Spell::EffectEmpty for mark spell effects that used but not expect any code in handler.
  Example weapon spells that used just as known spell markers for client.

Original patch idea inspirit by Sadikum patch suggestion.
2010-03-01 13:08:52 +03:00
VladimirMangos
9bebf96c8e [9483] Not affect anything but not nice typos... 2010-02-28 17:17:28 +03:00
VladimirMangos
4dc85260c7 [9482] Implement 48266, and 50365, 50384, 50391 and ranks.
Original patch provided by laise.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-28 17:10:25 +03:00
VladimirMangos
7e2d7d8324 [9474] Implement negative totem effect apply for 30706 and ranks. 2010-02-28 03:58:35 +03:00
MrLama
530be51dc5 [9457] Implement spell/attack power bonus for 59547 and similar spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix build in prev. rev. in result my not added changes.
2010-02-26 03:44:41 +03:00
pasdVn
1e05a737bd [9456] Fixed spell proc code for mixed proc event cases.
* Allow spells with multiple procEx flags to trigger also with 0 dmg, if current
procExtra is no normal hit (e.g. block and normal hit as flags -> all dmg blocked).

* Also allow proc at hit as result partly block. This fix case from unknown author
  prepered by KAPATEJIb.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-26 02:49:06 +03:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
NoFantasy
7c555add76 [9403] Replace number with enum name where explicitly used in array/other checks
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-17 19:07:00 +01:00
AlexDereka
5368751c13 [9386] Store some config values in Rate emun. 2010-02-15 00:17:44 +03:00
VladimirMangos
f4c38044c4 [9384] Resore use uint64 instead time_t in query, some other fixes. 2010-02-14 21:35:03 +03:00
laise
71d0989db3 [9364] Update diminishing categories.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-12 14:07:55 +03:00
VladimirMangos
b2c3132eaa [9301] Implement proper check of broken spells for IsLootCraftingSpell case. 2010-02-04 15:27:45 +03:00
NoFantasy
2718884192 [9300] A few more error message corrections/clarifications.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-04 12:08:33 +01:00
Lightguard
dae28aafc4 [9293] Fix stacking problem of tracking spells 2010-02-03 18:51:33 +01:00
VladimirMangos
8ff7010750 [9285] Fixed unexpected double time for apply damage for spell 1464 and ranks.
* Implement way ignore some redundent data for triggered spells base at cast cost exist.
  Reason: some triggered spells inherited data from main spells
  just for porper client show spell attributes, we not need this data.
* Use check for ignore inherited cast time.
2010-02-02 20:17:04 +03:00
j4r0d
8294754cc0 [9258] Add break for safe and code style.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-26 19:43:13 +03:00
VladimirMangos
40c1e6e772 [9239] Apply second part of spell 50397. 2010-01-23 00:59:54 +03:00
Insider
4e6befc43d [9226] Fixed a bug with applying spells 1784,5215,24450 and ranks as debuff.
All non generic spells expected to be cancellable and part of buff abilities.

(based on commit 7f5310b from insider42/mangos).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-21 07:40:46 +03:00
laise
a20a0a9d5c [9220] Implement talent 53527 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-20 10:48:26 +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
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
c09ee423ba [9098] More correct targets selection for target pairs with TARGET_SELF2
* Many spell effects that have A target mode SELF2 expected applied to enemy
  target selected by targetmode B so we need skip SELF2 target mode.
* remove SEFL2 from explicit positive target modes.
2010-01-01 21:18:43 +03:00
NoFantasy
56407bdb32 [9096] Implement periodic dummy aura for spell 52441
Note speed is not really reduced as expected, this need correction in other parts of code.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 18:35:35 +01:00
Splinter
15d4388696 [9078] Allow stacking healing buffs from spell 33763 and 48438, and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-29 00:31:40 +03:00