Commit graph

1708 commits

Author SHA1 Message Date
NoFantasy
c59dac48ff [8208] Add part support for spell 33525.
Also let spell 33652 trigger when aura from 33572 reach full effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-07-19 11:23:14 +02:00
Itch
454b9a06a8 [8207] Allow show combat log for healing done by totems.
(cherry picked from commit 62436f324461648b3b0c3a1a9dee896fc1220343)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 08:31:10 +04:00
nos4r2zod
9b2b2b09ec [8206] Partly revert [8173] in part per tick bonus coefficient.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 07:57:21 +04:00
VladimirMangos
39833b0069 [8205] Really use trap GO charges and avoid casting in despawned state.
* Drop horribale hack with stored charges amount, use instead GO info charges data as expected.
* Count trap activations as charge uses if it have limited charges.
* Check trap reactions only in ready spawned state.
2009-07-19 07:41:08 +04:00
GriffonHeart
349216d5d7 [8204] Avoid call assistance from non-combatants.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 05:38:49 +04:00
Trogvar
22ed15a76e [8203] Correcttly re-apply level scaled item stat mods at player level change.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 05:15:09 +04:00
VladimirMangos
e793f0eeab [8202] Replace raw array index values by enums. 2009-07-19 04:02:42 +04:00
Alez
ce387187c1 [8201] Apply PvP duration limit to spell 15286
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 03:23:18 +04:00
Ambal
8ebcabdc23 [8200] Use FASTBUILD precompiled mode for debug case also.
So in fact remove this define and use related includes unconditionally.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 02:40:41 +04:00
Astellar
8a279eda4b [8199] Allow stack auras from different spells triggred at talent 59672 use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-19 01:53:20 +04:00
Ungaminga
7ace4b2cd7 [8198] Implemented heal part of spell 15237 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-18 21:30:32 +04:00
VladimirMangos
9c91796443 [8197] Use more similar code for triggered and precast spells.
Also better error reporting at not existed spells.
Clear use in comments for this 2 dependent cast ways.
2009-07-18 21:30:11 +04:00
evilstar
49b201e22b [8196] Implement item 44012 spell effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-18 19:39:30 +04:00
VladimirMangos
050962d9fd [8195] Add spell check data for dummy effect tail... 2009-07-18 06:16:50 +04:00
Ambal
c8fa4b59f5 [8194] Use _SECURE_SCL=0 for speedup iterators work at Windows platform in release mode.
Change added for VC80/VC90, but not added for VC10.
2009-07-18 03:50:19 +04:00
XTZGZoReX
4f53c4ee28 [8193] Use constant instead explicit value in title index checks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-17 19:29:48 +04:00
VladimirMangos
3e2477945d [8192] Some other spell mechanics affected by diminishing returns.
Commit inspired by Astellar patch attempt fix problem in another way.
2009-07-17 06:24:29 +04:00
XTZGZoReX
a538fa621c [8191] Drop code related to use long time empty spell_affect table.
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc
and no need in custom values.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-17 04:29:33 +04:00
GriffonHeart
cbfbd13146 [8190] Update killing quest objectives base at creature_template KillCredit fields.
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.

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

Also implement KillCreditN field check at loading.
2009-07-17 03:45:40 +04:00
VladimirMangos
ad67efefad [8189] Fixed: not include player in GM online list output. 2009-07-17 02:14:42 +04:00
VladimirMangos
888e6f04f3 [8188] Cleanups in #includes for SpellMgr.h 2009-07-17 00:45:47 +04:00
NoFantasy
212ece4e06 [8187] Remove %s prefix in BuildMonsterChat().
For cases where name of sender is expected to show in client chat (mainly emote texts), add %s to the text where name should display.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-07-16 17:20:58 +02:00
VladimirMangos
745f4de173 [8186] More spell check data. 2009-07-16 05:57:20 +04:00
VladimirMangos
c129b0a1bd [8185] Allow set visible gm level for in gm list and in who list checks.
* GM.InGMList replaced by GM.InGMList.Level with default value 3 (visible any gm levels)
* GM.InWhoList replaced by GM.InWhoList.Level with default value 3 (visible any gm levels)

Update mangosd.conf if used non default value for old GM.InGMList and GM.InWhoList
2009-07-16 02:54:57 +04:00
ApoC
f3fa9bf5e5 [8184] Added same handling for non existing excludeTargetAuraSpell as for excludeCasterAuraSpell
* This fix casting 10278 and ranks to targets with 61987

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-15 23:34:56 +02:00
VladimirMangos
9a0abf0e01 [8183] Some gameobject despanw related fixes
* Implement use `consumable` field in gameobject template for gameobject required explcit despawn at use.
* Move gameobject template fields cech function from Gameobject to gameobject template class, and update callers.
* Cast spells at gameobject use with gameobject guid as original caster guid, as already used in some other cases.
2009-07-15 06:32:08 +04:00
Ambal
58209ee79a [8182] Store and use Map* pointer in WorldObject instead map ids for speedup
Also some code logic cleanups.
Changes let make more cleanups in base map access and other places,
but this chnages not inlcuded in patch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-15 02:13:52 +04:00
ApoC
fcb34b3928 [8181] Prevent passing negative values into IsWithinDist() in stealth detection
* This should fix wrong stealth detection for high level differencies

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-14 19:32:47 +02:00
VladimirMangos
58a292e99c [8180] Drop dead code for old version 28730. It not have another way to work (from 3.0.2) 2009-07-14 05:31:12 +04:00
VladimirMangos
1363605cfc [8179] Fill spell_check table by data for dummy effect (0 spell family), some code cleanups. 2009-07-14 05:13:29 +04:00
VladimirMangos
12ee5cdc08 [8178] Fixed absent break in spell targeting code. 2009-07-14 03:41:12 +04:00
ApoC
2b09bb19eb [8177] Fixed calling SummonedCreatureDespawn from TemporarySummon::UnSummon
* If we call AddObjectToRemoveList m_inWorld is set to false and
  ObjectAccessor::GetUnit always returns NULL.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-13 22:16:06 +02:00
VladimirMangos
c96f8e3d9f [8176] Forbid using some monster movement flags (that can crash client) in creature*_addon tables.moveflag tables field.
Also refactoring creature addon tables loading.
2009-07-13 23:38:27 +04:00
VladimirMangos
647e1c5a8b [8175] More fixes for 33878/33876 and ranks.
* Apply SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT in melee binus for special attacks
* In damage calulcation spell 5221 and ranks considered have MECHANIC_BLEED.
* Drop more dead code related to 33878/33876 and ranks.
2009-07-13 18:48:11 +04:00
ApoC
9759a2279c [8174] Fixed typo in IsSpellHaveAura
* Correct cast DBC data to AuraType instead of SpellEffect.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-13 15:14:10 +02:00
VladimirMangos
2dee7750e4 [8173] Fixes for 1822 and ranks base at spell_check detection
* Update AP bonus per tick to 0.18 as expected in 3.0.2 and later.
* Better spell selction to avoid unrelated spells for AP bonuses
2009-07-13 15:58:37 +04:00
VladimirMangos
2ed6642539 [8172] Drop dead code for 33878/33876 and ranks.
Detected by spell_check: not have now dummy aura but have
SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCEN for proper mechanic.
2009-07-13 15:03:09 +04:00
VladimirMangos
d09615b2e5 [8171] Restore work double damage chance for spell 35290 and ranks.
It has been broken at client switch and detected by spell_check data.
2009-07-13 04:31:44 +04:00
VladimirMangos
fe1693a7da [8170] Fill spell_check by data form SpellEffect.cpp until end of Spell::EffectSchoolDMG.
2 error and 1 spell mask duplicate with strnage differences specially not fixed for
show .debug spellcheck work ;)
2009-07-13 04:00:11 +04:00
VladimirMangos
f99f477fe8 [8169] Implement new optional table spell_check and console command .debug spellcheck
* Table expected to be store data mirror same data in code:
  - explicit spell ids with related expected spell properties like effects, spell family or auras
  - implicit requirements for select some spell sets like spell family masks, icons or visual values
* For check can be used .debug spellcheck _console_ only command.
* Main purpose table and related command check code parts for outdated data at client switch.
  It also can be used for check data in patch writing time to be sure code correctness.
2009-07-12 22:15:56 +04:00
KAPATEJIb
3b47b66ba9 [8168] Fixed typo in .lookup taxinode output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-12 16:16:18 +04:00
VladimirMangos
7f3f21ee1a [8167] Use more consistence debug command handler names and move its code to debugcmds.cpp 2009-07-12 16:00:28 +04:00
VladimirMangos
f84a68553c [8166] Add support for 32-bit hex format in addition to 64-bit version 2009-07-12 15:59:58 +04:00
ApoC
5b209bced4 [8165] Correctly add quest talent points count for characters on lvl 55.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-12 00:38:06 +02:00
Lutik
04a5a674d2 [8164] Implement engineering boots permanently enchantment 55016 effect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-12 01:55:44 +04:00
SeT
e6d40697a1 [8163] Fixed typo and wrong check affecting threat calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-12 00:18:28 +04:00
ApoC
0dc7ea6cc2 [8162] Fixed applying random enchantments to quest rewarded items.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-11 21:52:35 +02:00
ApoC
45eda48693 [8161] Partial revert and fix of my prev. commit in Aura::SetStackAmount
* Aura should be refreshed also when stackAmount == m_stackAmount
  this fixing problem that aura not refreshed if you have already full stack
  and cast "stack spell" again on target

Thanks Corfen for problem reporting and testing

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-11 19:13:01 +02:00
VladimirMangos
aed2a9f9b3 [8160] Now finally correct extraction uint16 enchantment id from uint32. 2009-07-11 19:38:16 +04:00
VladimirMangos
fcc1acfa83 [8159] Restore show item enchantments visual effects in character enum list. 2009-07-11 06:28:45 +04:00