Commit graph

1708 commits

Author SHA1 Message Date
Infinity
ae8712e61b [8258] Replace redundent PQuery uses by Query in EventAI code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-27 17:55:01 +04:00
Astellar
793ce2259a [8257] Avoid remove daze and croud control spells except polymorph at druid form change.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-27 16:39:57 +04:00
VladimirMangos
c547a27dad [8256] Restore DB script loading broken after [8252].
Also propetly decrease scheduled DB script actions at map unloading.
Some code style restore.
2009-07-27 11:31:53 +04:00
freghar
c3d26f6fa2 [8255] Makefile.am cleanup, comments + indent
Signed-off-by: freghar <compmancz@gmail.com>
2009-07-27 03:35:53 +02:00
Alez
a4baef0c47 [8254] Internal cooldowns for some item effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add lost chain data part to mangos.sql from prev. commit.
2009-07-26 20:49:09 +04:00
Den
110ff906e8 [8253] Some spell proc fixes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 20:33:31 +04:00
Ambal
64f11bedf7 [8252] Move DB scripting code from global World to Map.
This one more step to pre-map events proccesing and parallel in future.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 12:20:59 +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
ApoC
79d49504e0 [8248] Fixed talent 12328
* This one spell belongs to SPELLFAMILY_WARRIOR not GENERIC
  next to IDs are for NPC possible.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-25 16:23:01 +02:00
nos4r2zod
983264737e [8247] Some data for spell_bonus_data for DK spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-25 08:06:30 +04:00
raftom
0d559180fa [8246] Fixed check for spell 59921 debuf aura (55095) at target for spell 49202 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-25 07:52:01 +04:00
Sarjuuk
75510992a9 [8245] Implement glyph 40906.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-25 07:18:25 +04:00
VladimirMangos
bd1ea72043 [8244] Skip cheating check for buy bank slot opcode.
This is not big problem in any case and will allow buy slots
in bank windows open using .bank command.
2009-07-25 06:47:05 +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
f6f4b29465 [8242] Propertly use aura target instead aura caster.
That same infact but nore slow for access and less safe.
2009-07-25 00:04:58 +04:00
VladimirMangos
7c2ff6cfcb [8241] One more cleanip and crash prevention :/ for prev. commits. 2009-07-24 23:52:43 +04:00
VladimirMangos
aa23cf729c [8240] Small additional cleanup comments 2009-07-24 23:46:20 +04:00
VladimirMangos
c248c358be [8239] Implement talent 44745 and ranks.
Thanks to KAPATEJIb for proper rank and chance selection.
Thanks to raftom for proper aura remove mode detection
Thanks to me for proper triggered spell casting affect diminitshing return group selection.
2009-07-24 23:42:32 +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
Lynx3d
e947acd59c [8237] Apply attack power multiplier to creature bonus attackpower.
Note: mindmg/maxdmg in creature_template expected including attackpower part in its.
attackpower field only show part of attackpower not affected by AP multiplier.

Thanks also to Seizer for take part in reseach and patch review.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-24 16:55:37 +04:00
ApoC
6b2b58cec9 [8236] Implemented explicit remove of Aura by pointer to it (used for single cast auras).
* This can prevent removing single cast aura of same id and effect
  but different caster what can cause assert in next code.

Thanks Vladimir for hints.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-23 21:45:13 +02:00
VladimirMangos
18ae2de853 [8235] Fixed typos in ACTION_T_SET_INVINCEABILITY_HP_LEVEL.
Thanks to Zor for pointing.
2009-07-23 17:28:06 +04:00
VladimirMangos
ae2f25ce64 [8234] Implement support for explcit discovery spell 64323. Also better checks at loading. 2009-07-23 17:14:31 +04:00
VladimirMangos
dce0941511 [8233] Implement new EventAI action ACTION_T_SET_INVINCEABILITY_HP_LEVEL.
Action set min. health value that can be set for creature in result damage apply.
It can be used in duel like events with creatures to prevent killing creature and other
cases when creature must avoid damage at some health level while it used.
2009-07-23 12:40:21 +04:00
VladimirMangos
6c395cf79c [8232] Implement talent 48438 and ranks in target seelction and per-tick heal amount.
Original patch has been suggested by Beaste.
2009-07-23 00:15:52 +04:00
SilverIce
0cf083eb55 [8231] Use more safe destination buffer size for zlib compression.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-22 15:59:36 +04:00
Gendalph
d838f231ab [8230] Add new line at the end of file Player.h to make gcc happy.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-22 15:32:51 +04:00
Ambal
fc7871f0a2 [8229] Improve stealth detection code for player case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-22 12:23:12 +04:00
raftom
c4ceafcf56 [8228] Implement talent 49203 (main functionality).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-22 10:03:25 +04:00
VladimirMangos
6170497643 [8227] Fix sql update name and add refs to it to proper places. 2009-07-22 09:00:25 +04:00
Astellar
467e47df7c [8226] Fixed spell proc data for spell 63730 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-22 08:47:30 +04:00
tomrus88
a0efd034ca [8225] Some fixes from 320 branch.
(backported from commit 4bdcf42)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-21 05:30:58 +04:00
VladimirMangos
b7389d2a20 [8224] Small uint64 defines cleanup. 2009-07-21 01:37:35 +04:00
VladimirMangos
e16a784ae8 [8223] Simplify code for AURA_STATE_CONFLAGRATE remove at aura remove. 2009-07-21 01:24:05 +04:00
freghar
e612d0778a [8222] Partial EventAI.txt rewrite, typo and language fixes
Signed-off-by: freghar <compmancz@gmail.com>
2009-07-20 19:34:32 +02:00
freghar
cd17ada2e5 [8221] Removed trailing whitespaces
With excluded dep/ - as usual.

Signed-off-by: freghar <compmancz@gmail.com>
2009-07-20 17:53:14 +02:00
evilstar
0a7f878eb8 [8220] Implement SPELL_EFFECT_PLAY_MUSIC(132)
Thanks to GriffonHeart for help in reseach.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 13:20:46 +04:00
nos4r2zod
a6b1334ba1 [8219] Avoid hunter traps proccing when deleted at replace by another trap.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 12:36:08 +04:00
VladimirMangos
36605805b4 [8218] Final part of talent 17962 and ranks fixes.
* Support correct aura state at server set for different casters effects
* Correctly check this telent (per caster) aura state at cast
* Correctly show per-caster aura state for cleitns.
2009-07-20 11:47:59 +04:00
VladimirMangos
d2dadbcb99 [8217] Implement proper priority in effect selection at talent 17962 cast. 2009-07-20 08:17:30 +04:00
rechapa79
680ab810e0 [8216] More fixes in spell 47897 and talent 17962 and ranks work.
* Implement DoT apply for 47897 and ranks.
* Implement propertly aura state update at add/remove 47897/348 and ranks
* Update checks for 29722 and ranks for bonus damage

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 07:26:19 +04:00
VladimirMangos
febdda5bab [8215] Update sql/mangos_spell_check.sql. 2009-07-20 06:34:31 +04:00
tlexii
f1b11860f6 [8214] Implement apply glyph 42454 to talent 17962.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 06:18:45 +04:00
Ungaminga
eba34304ea [8213] Update code for talent 17962.
* Fixed place, basic dependent from 2 auras type at target and damage calculation.
* Avoid double apply spell bonus from original effect and talent self.

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

This is first patch in series for resolve all problem suggested by different authors.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 06:14:57 +04:00
Astellar
b047a62259 [8212] spell_proc_event data fixes for spell 18096, 18119, 30293 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 04:57:34 +04:00
Splinter
8dd96ce52d [8211] Correct proc event and internal cooldown for item 42990.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 04:03:15 +04:00
Astellar
e2d40fecc1 [8210] Implement talent 53302 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-20 03:23:28 +04:00
ApoC
45a0d3c8c2 [8209] Comment fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-19 17:41:11 +02:00