If player in range then related grid loaded, if not loaded then player
not in range and no reason for loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
* including new achievement createria data type ACHIEVEMENT_CRITERIA_DATA_TYPE_BG_LOSS_TEAM_SCORE
Note: Some achivement creteria for success need data in `achievement_criteria_data`
score is used in every battleground (not arena)
so we can use it as a virtual variable to access
it also from BattleGround-class
Signed-off-by: balrok <der-coole-carl@gmx.net>
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>
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>
* 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`.
* 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>
* 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>
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.
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>
* 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>