Commit Graph

59 Commits

Author SHA1 Message Date
Spp
890940c8e6 Fix Arena starting personal rating formula
Original patch by maketheking
closes issue 2013

--HG--
branch : trunk
2010-05-05 01:17:50 +02:00
Rat
9207757861 ALWAYS use starting personal rating from config IF greater then 0, thanks to Gyullo
using 0 will let core calculate it

--HG--
branch : trunk
2010-05-04 16:53:19 +02:00
Rat
7d93b99c1f starting from season 6, new arena team members should get the team rating as a starting personal rating, with a maximum of 1000
--HG--
branch : trunk
2010-05-04 12:46:53 +02:00
Spp
208c05bf41 Code Style. Closes issue 1515
--HG--
branch : trunk
2010-05-02 04:30:11 +02:00
thenecromancer
2d994648a1 Don't loose arena points in case of rating lower than 1000 ( don't know if this is season dependant, as it was quite hard to loose that much rating )
--HG--
branch : trunk
2010-04-21 19:08:39 +02:00
Spp
65c3e979e2 Tab to Spaces and remove of trailing spaces
--HG--
branch : trunk
2010-04-11 20:20:38 +02:00
n0n4m3
36e13c1d1c Not use PLAYER_FIELD_ARENA_TEAM_INFO_1_1 directly. Big thx to TOM_RUS.
--HG--
branch : trunk
2010-04-11 11:08:26 +04:00
n0n4m3
93f7e2796c Some fixes to guild/arenateam events. Big thx to TOM_RUS.
--HG--
branch : trunk
2010-04-11 11:06:51 +04:00
Spp
46f0674e23 Code Style (game + scripts only):
">=" --> " >= " (when needed)
"  >=" --> " >="
">=  " --> ">= "
"<=" --> " <= " (when needed)
"  <=" --> " <="
"<=  " --> "<= "
" ==" --> " =="
"==  " --> "== "

--HG--
branch : trunk
2010-04-07 23:56:35 +02:00
Spp
49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp
182e9a20b1 Code style (game + scripts only):
"for(" --> "for ("

--HG--
branch : trunk
2010-04-07 19:12:44 +02:00
Spp
b27ce42704 Code Style: Remove trailing spaces
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
Spp
f490ad5ac2 Code Style: tab to spaces
--HG--
branch : trunk
2010-04-07 17:24:07 +02:00
Machiavelli
b651b592ef Fix arena point calculation. If the configured arena season is >= 5, teams below 1500 rating should get a fixed amount of points, equal to the amount of points a person with 1500 rating would get.
--HG--
branch : trunk
2010-03-20 17:51:23 +01:00
Darkrabbit
b0042f7056 * Optimized guild and arena team loading at startup
--HG--
branch : trunk
2010-02-18 02:42:59 +01:00
Brian
486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
Anubisss
d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
n0n4m3
2edfea7bb9 Update Arena and Achievement for 322a
--HG--
branch : trunk
2009-12-17 10:35:35 +01:00
maximius
6aba32bd2b *Fix a typo in arena logging, by ogeraisi
--HG--
branch : trunk
2009-11-04 18:44:06 -08:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
megamage
123ea8543a [8271] Fix: SQL typo in [8269] Author: Ebrithil
--HG--
branch : trunk
2009-07-31 11:25:00 +08:00
megamage
60c3d7db71 [8269] added "m_" prefix to ArenaTeam classmember-variables Author: balrok
--HG--
branch : trunk
2009-07-31 11:22:27 +08:00
QAston
74d6ea4efb *[8267] ArenaTeam: added check, that teamrating won't become negative Author: Barlok
*[8268] ArenaTeam: new rating-system for season 6 Authors: danielich and XTZGZoReX.

--HG--
branch : trunk
2009-07-30 12:59:59 +02:00
QAston
9ce979130e *Fix build.
--HG--
branch : trunk
2009-07-14 01:04:19 +02:00
Destalker
6a8527934b *Update arena rating calculation
--HG--
branch : trunk
2009-07-14 00:04:15 +02:00
megamage
e765469b13 *Fix arena team rating calculation.
--HG--
branch : trunk
2009-06-18 16:51:32 -05:00
megamage
9e0e4e5e4d *Add debug log for modify personal rating.
--HG--
branch : trunk
2009-06-18 11:33:32 -05:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
megamage
7e4fcb1793 *Now new arena team has both team rating and personal rating = 0. According to the change in 3.1
--HG--
branch : trunk
2009-06-17 18:19:08 -05:00
megamage
540c5291eb *Merge.
--HG--
branch : trunk
2009-06-07 12:02:54 -05:00
megamage
aaeb7adedd *Fix the output of arena log. Note: use I64FMT to output full guid (uint64) and %u to output guidlow (uint32). Otherwise the log will be bugged.
--HG--
branch : trunk
2009-06-07 10:23:50 -05:00
panaut0lordv
f6447e8f34 *Including style fixing - part 1
--HG--
branch : trunk
2009-06-04 21:41:07 +02:00
megamage
2c350bcb80 *Merge.
--HG--
branch : trunk
2009-06-01 15:53:03 -05:00
krz
38c6880d93 Detailed log of arena fights and arena team creation.
--HG--
branch : trunk
2009-06-01 20:44:23 +02:00
megamage
de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
raczman
1e77ccd935 Change container type for guilds to Map.
Use const_iterator in case nothing is modified in loop.
author: bladex.

--HG--
branch : trunk
2009-04-12 12:57:06 +02:00
megamage
c708eba713 [7415] Fixed removing player from battlegrounds Author: Triply
Probably fixed bug with not ending battlegrounds - reported in previous commit message
    Fixed player will loose arena rating if
    1. he doesn't click on enter rated arena window - and timer will expire
    2. he logs out during time he is invited to rated arena match
    3. if he logs out during fight in rated arena match
    Patch is not tested, i will test it as soon as possible.

--HG--
branch : trunk
2009-03-09 17:07:40 -06:00
megamage
699bc588b8 [7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
    2) redundent includes
    3) wrong constructor :-part field initilization
    4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
    5) explicitly list not implemented achievement types.

    Also bugs fixed:
    1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
    2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
    3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.

--HG--
branch : trunk
2009-02-24 11:14:28 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage
089dece311 [7282] Store guilds in map for fast search by id, some other guild/arenateam related cleanups. Author: zhenya
--HG--
branch : trunk
2009-02-15 12:14:14 -06:00
megamage
d696381f32 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
    * Use in functions and fields BattlegroundTypeId type instead uint32
    * Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
      Many bg have same raw values for type id and queue id but some can be affected by this bug:
      BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
    * Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
    * Remobe redundent for header itself includes for BG headers.
    * Use Auction location enum instead raw valus.
Author: VladimirMangos

--HG--
branch : trunk
2009-02-09 22:08:06 -06:00
Drahy
7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage
1707d1e5ae *Switch to 3.0.8.
*Update to Mangos 1119.

--HG--
branch : trunk
2009-01-30 19:22:49 -06:00
megamage
400f7b8596 *Temp fix for crash caused by AV creature. Need to find a way to allow summoned creatures to use RandomMovement.
--HG--
branch : trunk
2008-12-19 16:05:13 -06:00
megamage
ce643187f0 *Update to Mangos 6888. Source: Mangos.
*Major change: Make corpse erase async, Avoid DB access on deleting guild member.
*Skip 6885 because of performance concern.

--HG--
branch : trunk
2008-12-08 16:34:03 -06:00
megamage
920dae4f7f *Fix the bug about arena personal rating.
*Update to Mangos 6870. Source: Mangos. Main change: add a function SaveDataFieldToDB().

--HG--
branch : trunk
2008-12-01 17:36:11 -06:00