Commit graph

99 commits

Author SHA1 Message Date
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
VladimirMangos
2791d5a6d3 [7358] Fixed spell_area autocast field loading. 2009-02-28 03:24:36 +03:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
  aura present at character, character race/gender.
* Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
  zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
* Old hardcoded lines for similar check removed from sources and required DB support for work now.
2009-02-27 11:15:36 +03:00
GriffonHeart
e133c9f0d7 [7322] Allow stacking for spell 52950 and 52707
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 04:44:04 +03:00
VladimirMangos
e97c7ad9c5 [7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases. 2009-02-09 15:42:22 +03:00
GriffonHeart
6afcf1a1ef [7229] Add area limitation checks for battleground/arena spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Spell sorted by 2 list and map ids lists replaced by map type checking in patch.
2009-02-05 04:59:42 +03:00
DiSlord
88419c968f [7202] Fix warlock armor buff stack
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-30 23:01:03 +03:00
DiSlord
59861857e5 Replace values by defines
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 20:38:26 +03:00
DiSlord
4ecfbcc2f5 Use spell_bonus_data table for store custom damage/healing bonus coefficients
Big thanks ApoC for help create table.
Fixed bonuses for stacked periodic
Warning need test all coefficients for correct bonus amount.
TODO:
 use this table for absorb bonus calculation
 use this table for melee spells AP bonuses
 use chain multipler in final damage/heal amount

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:23:16 +03:00
VladimirMangos
430c634fd3 [7195] Implement SPELL_AURA_PHASE (261) and basics of phases system work (for player/creatures/pets only) 2009-01-27 19:17:52 +03:00
DiSlord
9759808b4a [7181] Fix mana regen on priest 47585 use
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 21:56:47 +03:00
pasdVn
be736100cb [7175] Fix some hunter abilites
56342 and ranks - proc on trap activation
 34497 and ranks - mana restor amount
 56333 and ranks
 add some cast as trap activation

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 17:46:37 +03:00