Commit graph

310 commits

Author SHA1 Message Date
balrok
dddacab0dd [8345] corrected startup-checks for spell_area table
old problem was that, for example
a single spell couldn't be cast
at aura OR quest (so 2 entries in this table)

.. will be now possible

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-08-10 21:28:12 +02:00
VladimirMangos
3c47e6117a [8308] More generic code for new continent spell casting including fly form/mounts.
* Check new continent requirement by SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND in
  SpellMgr::GetSpellAllowedInLocationError.
* Also in this function let ignore any area requirement in GM-mode (except client side checks ofc if use spellbook/item)
* For fly form/mount auras check only speciaal reqirement like special fly skill and ignore it for dead state.
* Drop explicit fly auras drop at zone update, now this part GetSpellAllowedInLocationError functionality.
* Allow in `spell_area` have data deepndent from ghost auras

This all allow implement apply spells 55173/55164 to player ghost wiht DB support in `spell_area`
2009-08-04 23:43:35 +04:00
VladimirMangos
bb273d51ad [8306] Implement single-per-caster limitation for paladin "hand of" spells. 2009-08-04 20:01:34 +04:00
nos4r2zod
39eca7d43a [8298] Use new Aura::HandleSpellSpecificBoosts for apply/remove dependent auras.
This provided more clear place where dependent auras can be applied/removed,
if expected manual apply _with_ aura remove at parent aura expire.
This can be used for more cases.

In current state it implement additional effects for
29836 and ranks, 61846 and ranks, 31869, 53379 and ranks, 20254 and ranks,
20138 an ranks, 48263, and 48265.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-03 02:27:30 +04:00
nos4r2zod
93b0ccfe0b [8279] Fixed hunter aspets, paladin auras and DK presence detection for SpellSpecific.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-30 14:06:39 +04:00
Lutik
48eb01666d [8264] Implement target mode 104 (forward 30 degries cone)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-28 14:14:05 +04:00
VladimirMangos
7ac4dc6f13 [8251] Store in some DB tables only data for first rank.
* Allow add to DB data only for first rank in table `mangos_spell_bonus_data` and `mangos_spell_proc_event`.
* Copy data for other ranks for speedup use at loading for this data and data from `spell_proc_item_enchant`.
2009-07-26 10:46:36 +04:00
nos4r2zod
fd2eb3cfee [8250] Cleanup code and data for spell_threat
* Load table data to std::map instead SQLStorage and add check loaded spell existance.
* Drop from table not existed spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 05:49:17 +04:00
nos4r2zod
13b709a10b [8249] Implement support spell_proc_item_enchant table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
  With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.

* Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
  That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.

Thanks to MaS0n as author alternative patch that partly used in this patch.
Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 04:58:46 +04:00
VladimirMangos
4c26accd39 [8243] Fixed problems with unexpected set diminishion return level at arena for fear/turn spells. 2009-07-25 04:12:08 +04:00
VladimirMangos
7b42377980 [8238] Revert "[8118] More diminishing returns for mage case."
This reverts commit 4a054a44cd4ff0a29691660fa34cf72fedbf184c.

Totally wrong commit inspirid not finish broken talent implementation not added in mangos sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-24 23:20:38 +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
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
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
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
ApoC
61443d7583 [8130] Allow stacking spell 18820 with 1459 and ranks
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-05 20:54:08 +02:00
Lightguard
0e1d03baeb [8118] More diminishing returns for mage case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-04 23:29:42 +04:00
zuudu
7091e84f38 Fixed old typo in disarm diminishing selection.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-03 12:59:52 +04:00
Lightguard
b768bbb8ff [8109] Implement some more PvP aura duration limits.
Thanks for reseach to Alez.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-03 12:56:08 +04:00
VladimirMangos
dc10620148 [8101] Prevent use talents as quest rewards or spell_learn_spell learned spells. 2009-07-01 06:43:27 +04:00
VladimirMangos
29493ef779 [8099] Small not detected uint16 cases for spell ids. 2009-06-30 12:38:50 +04:00
VladimirMangos
1baec77845 [8098] Support uint32 spell ids in code.
* Propertly work with uint32 spell ids in player action bar
* Fix in same time bug with not save equipment set button with id==0
* Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
* Propertly load uint32 spell ids from character_spell
* Fixed types for some pet/creature related structure for spell id storing.
2009-06-30 11:25:32 +04:00
Maxxie
14a4e0ec53 [8086] Restore work spell 11196.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-28 11:28:25 +04:00
Lightguard
df064ebd9f [8082] Update Diminishing Returns.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-27 11:32:52 +04:00
VladimirMangos
7175007aba [8070] Restore spell casting loot items and recipes.
* SPELL_EFFECT_OPEN_LOCK_ITEM (59) effect removed in 3.1.3
* It replaced by SPELL_EFFECT_CREATE_RANDOM_ITEM (59), random item without template replace spells like clam loot spells)
  Used by spells that use before SPELL_EFFECT_CREATE_ITEM_2 (157) with itemtype==0

Note: required DB support in `spell_loot_termplate`
2009-06-23 03:46:27 +04:00
hunuza
7448aaa37e [8060] Fix 56314 and ranks.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-21 12:33:52 +02:00
VladimirMangos
0e20fbbd56 [8038] More expect to be possitive dummy effects. 2009-06-18 00:56:45 +04:00
VladimirMangos
2964a44c25 [8037] Make one from trigger targeting spell effects positive. 2009-06-18 00:33:36 +04:00
Lightguard
bc953feb31 [7930] Added diminishing for spell 1499 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-31 22:17:09 +02:00
VladimirMangos
2a27a44e2a [7918] Improve portability in work with uint64 string format specifiers and in code literals.
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
  I64FMTD renamed to UI64FMTD for more clear name.
* Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
  Please always use UI64LIT(0x00001) instead less portable 0x00001LL
2009-05-30 22:44:20 +04:00
VladimirMangos
e8cd008005 [7917] Spell effect with SPELL_AURA_MOD_SPELL_CRIT_CHANCE always possitive with possitive aura value. 2009-05-30 07:41:24 +04:00
VladimirMangos
51f7b8a482 [7891] Replace harcoded array of creature family skill lines by using DBC data. 2009-05-25 02:59:10 +04:00
VladimirMangos
8171bb57dd [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

* Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
* Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
* Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.
2009-05-24 06:39:29 +04:00
VladimirMangos
a1f4549862 [7833] Implement levelup spells for non-hunter pets.
* Use less hacky way to prepare data in SpellMgr::LoadPetLevelupSpellMap.
* Fill data for all pet families including not hunter pets.
* Fixed bug with lost/unexpected learned spells for some hunter pet families.

Use less hackky way for
2009-05-15 06:26:19 +04:00
DonTomika
b7417440df [7783] Fixed Night Elf death whisp form.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-06 00:35:32 +02:00
AlexDereka
27fabf7ace [7745] Fixed gcc warnings. 2009-05-03 20:25:27 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
DiSlord
ad12cd7531 [7713] Fix AreaGroup.dbc structure, more correct check it
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-25 10:42:42 +04:00
Lightguard
0aaf266513 [7664] Implement work of rogue talent 58426.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix problems with talent 58426 and 31223 work in case
* fast stealth reapply after stealth lost
* second stealth aura apply while another active.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 12:44:48 +04:00
Lightguard
cce772c08c [7660] Fixed problem with lost aura 40214 in some cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 04:21:08 +04:00
VladimirMangos
f38283eba6 [7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function. 2009-03-29 22:46:32 +04:00
VladimirMangos
c4d4bb5620 [7552] Move client version dependend DBC code to src/game. 2009-03-27 01:59:26 +03:00
`win
0f6b2ab9ae [7523] Fixed: players will now drop flag in battleground if they cast immunity buff on themselves.
TODO: players who carry flag in bg are imune to immunity buffs casted by friendly players. (todo added to code).
Bug: if paladin casts Hand of protection on flag carrier - flag will be dropped, but he should get "target is immune" message.
Fixed: Do not call Battleground::Update for battleground template objects.
Fixed: Do not allow immune player to click on object in battleground (not sure if this is correct in all cases).

Signed-off-by: Triply <triply@getmangos.com>
2009-03-23 10:16:44 +01:00
DonTomika
636b0a9464 [7515] Not allow caster cast different polymorph spells at different targets in same time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-22 05:37:22 +03:00
Lightguard
610a040240 [7500] Not allow stacking some auras at target from different casters.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-20 00:14:59 +03:00
DasBlub
406a9a7fce [7483] the spell 'Protectorate Demolitionist' is a debuff.
(cherry picked from commit cdb050aed9d2ea43923123e54e15299f363befe9)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-18 00:25:21 +03:00
Lightguard
bde638ace7 [7476] Implement druid's talent 61336.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Some improvements added to patch. Related cleanups.
2009-03-17 01:27:16 +03:00
VladimirMangos
c1b0e7d57a [7466] Use SpellCastResult in SpellMgr.* functions 2009-03-16 11:21:28 +03:00
VladimirMangos
fee3278e57 [7376] Allow store in spell_area.aura_spell negative values for "not has aura" requirement.
Also
* Allow have in aura_spell spells with SPELL_AURA_PHASE in first effect.
* Allow negative aura_spell chaining in spell_area table.
* Better check at loading duplicate data (by requiremnt set) in spell_area table.
2009-03-04 01:27:56 +03:00