Commit graph

2531 commits

Author SHA1 Message Date
NoFantasy
cac822949f [8273] Use UNIT_STAT_ROAMING for PointMovement generator.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-07-29 12:39:14 +02:00
Sorya
7f38da23fd [8272] Fixed typos in world 'height' by code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also some other code style fixes.
2009-07-29 10:04:53 +04:00
Ebrithil
707c9f315d [8271] Fix: SQL typo in [8269]
Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 22:54:02 +02:00
fgenesis
46c314814c [8270] Fixed problem with Alt+F4 in instances.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-28 22:44:48 +02:00
balrok
0513e5cf06 [8269] added "m_" prefix to ArenaTeam classmember-variables
used this script + some manual edit
(i couldn't get out, how to handle comments)
function replace()
{
        sed -ri 's/([^a-zA-Z0-9_])'$1'([^a-zA-Z0-9_])/\1'$2'\2/g' ArenaTeam.*
}
replace Id m_TeamId
replace Type m_Type
replace Name m_Name
replace CaptainGuid m_CaptainGuid
replace BackgroundColor m_BackgroundColor
replace EmblemStyle m_EmblemStyle
replace EmblemColor m_EmblemColor
replace BorderStyle m_BorderStyle
replace BorderColor m_BorderColor
replace members m_members
replace stats m_stats

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 18:28:33 +02:00
XTZGZoReX
79d1c3fe6f [8268] ArenaTeam: new rating-system for season 6
every team will start with 0 rating here

to enable this you have to set your season in the config-file

thanks to danielich for initial patch

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 18:27:05 +02:00
balrok
3557b00a13 [8267] ArenaTeam: added check, that teamrating won't become negative
for this i added a FinishGame(mod) function
which also updates other stats, to avoid
redundant code

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 17:10:12 +02:00
VladimirMangos
8d7f6e5e0a [8266] Move percent spells with flat energize effect spells to effect code.
* This is fix talent 51521 and ranks.
* And replace hardcoded percent for talent 31876 and ranks.
2009-07-28 16:53:55 +04:00
Lutik
f0a878bf1e [8265] Add boss spells 64422 and 64688 to divided damage spells list.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-28 14:29:14 +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
Neveragain
ee2fcde901 [8263] Implement talent 48411 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-28 13:22:40 +04:00
tomrus88
786e48cdba [8262] Fixed work /played client chat command.
Thanks to The_Game_Maste for prepering patch for master branch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-28 01:03:59 +04:00
VladimirMangos
8720687bdb [8261] Skip not in world targets in same way as not existed targets.
This solve some crash possabilites after GetMap patch.
2009-07-27 22:20:47 +04:00
nos4r2zod
38326edb12 [8260] Fixed energize anount for spell 63375
Signed-off-by: ApoC <apoc@nymfe.net>
2009-07-27 19:44:49 +02:00
Infinity
68c86d0480 [8259] Move functions code from ChannelMgr.h to ChannelMgr.cpp.
Also cleanups in #includes and singleton instantiate.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-27 18:53:20 +04:00
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