aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
AgeCommit message (Collapse)Author
2010-06-03dismount when entering a battlegroundRat
use 80 for max level honor bonus calculation fixed SOTA second round timer by Gyullo --HG-- branch : trunk
2010-06-02stick with 1x rates, thankyaRat
--HG-- branch : trunk
2010-06-01SOTA updateRat
-proper warning text (under attack, destroyed, capture..) -proper icons on map for gate states -fixed second round starting --HG-- branch : trunk
2010-05-31*Fix: Strand of the Ancients.Liberate
- Massive Seaforium Charge (needs DB support for the spawns) - Demolishers are not attackable at the start - Demolishers spawn at the workshop if the graveyard is taken (The spawn locations aren't official yet) - Demolishers spawn immediately after being destroyed To make SotA perfect, it needs a lot of DB support. - Seaforium Bomb spawn locations - Set speed_run to 0 of the Cannons. --HG-- branch : trunk
2010-05-26Add support for random battlegrounds - port by n0n4me, original code by ↵click
Vladimir and Griffonheart (Big thanks to all of you!) --HG-- branch : trunk
2010-05-17fixed double honor count error in battleground player list windowRat
--HG-- branch : trunk
2010-05-17display honor gained from kills in bg score windowRat
--HG-- branch : trunk
2010-05-13Prune some deadwood.Xanadu
--HG-- branch : trunk
2010-05-12make BG kill XP configable, default offRat
--HG-- branch : trunk
2010-05-12typo :(Rat
should olso fix linux compile --HG-- branch : trunk
2010-05-11give xp only in BattleGrounds and not in arenasRat
--HG-- branch : trunk
2010-05-11started implementing battleground experience systemRat
-players gain xp by killing enemy players (event bonuses not added for now) -player can switch xp gain on/off by talking to npc Slahtz or Behsten for a fee of 10golds NOTE: turning off xp gain will turn off ALL xp gains from quests,monsters,pvp,etc --HG-- branch : trunk
2010-05-04Remove Marks and Quest Reward at BG finish.Spp
Patch by Gyullo --HG-- branch : trunk
2010-05-04use DB speeds for battleground creaturesRat
fixes moving cannons, if you set speeds to 0 in DB for them --HG-- branch : trunk
2010-04-10BG: Ignore min player limit while in debug modeAlex Bolotsin
Patch by AntiDiavol closes issue 1581 --HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-11Fix mail, professions, group loot, console spam, and some fixes. Big thx to ↵n0n4m3
TOM_RUS. --HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-03-09Rename 'Hostil' to 'Hostile'Spp
Credits to NoFantasy (Mangos) Closes issue #411 --HG-- branch : trunk
2010-03-02Some SA fixes by gyullo.p0wer
Also added formating fix for BattleGroundSA::EventPlayerUsedGO. --HG-- branch : trunk
2010-02-25Fix crash during BattleGround::EndBattleGround().Trazom62
Fixes issue #885. + init FirstFlagCaptureTeam at bg reset. --HG-- branch : trunk
2010-02-15Use PVPDificulty.dbc for bg/arena bracket selection (levels and difficulty). ↵n0n4m3
Rename BG/arena queue_id to bracket_id and related functions/etc. Author: VladimirMangos. --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Add some debug info to trac reason of assertion fail in Unit destructor.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-14Issue 322: build BG status packet and send it to player added to BG.thenecromancer
--HG-- branch : trunk
2010-01-10* Make sure that aura is applied on unit before trying to remove it.QAston
--HG-- branch : trunk
2010-01-10Update aura system:QAston
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras: * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras * Aura data is shared for all units which have AuraApplication of the Aura * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now) * Remove spell source and AreaAuraEffect classes * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant) * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation * AreaAura updates are done in owner _UpdateSpells cycle * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list * And you can access area aura target list * Add basic support for aura amount recalculation * Save recalculation state and base amount of auras to db * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets * Sort aura effect handlers in SpellAuras.cpp and .h by their use * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly * Send aura application client update only once per unit update - prevent unnecesary packet spam * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet * Fix memory leak at player creation (not deleted auras) * Updated some naming conventions (too many to mention) * Added Unit::GetAuraOfRankedSpell() function * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc) * Implement AURA_INTERRUPT_FLAG_LANDING * Implement EffectPlayerNotification (thanks to Spp) * Remove wrong aura 304 handler * Add better handler for death runes * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script * Add many assert() procection from idiots using some functions in wrong way * I am to lazy to write here anything more Thanks to Visagalis for testing this patch PS: Do not make patches like this, please --HG-- branch : trunk
2009-12-27Revert some commits. Now repo is stable. I recommend to disable Wintergrasp, ↵n0n4m3
because now its use leads to a crash. --HG-- branch : trunk
2009-12-26Removed SPELL_AURA_MOUNTED when BG end and player leaven0n4m3
--HG-- branch : trunk
2009-12-24Temporary revert 6743 commit. I fix this patch across 1-2 days.n0n4m3
--HG-- branch : trunk
2009-12-23Replaced time(NULL) on sGameTime.GetGameTime() this is used for better ↵n0n4m3
performance. Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton. 2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs. --HG-- branch : trunk
2009-12-20*apply trinity style to whole sourceRat
*comment out all mangos to trinity defines *this will make merging a little harder, but code will be more clear --HG-- branch : trunk
2009-12-18*Cleanup, proper indentation, and remove some wrong/irrelevant comments ↵maximius
copied from custom patches.. --HG-- branch : trunk
2009-12-17Restore some commits from trinitycore2 3.1.3n0n4m3
--HG-- branch : trunk
2009-12-17Update BattleGround System for 322an0n4m3
--HG-- branch : trunk
2009-12-17Set max health and mana at the end BGn0n4m3
--HG-- branch : trunk
2009-12-16Restore work arena unit framewin32
Closes #289 --HG-- branch : trunk
2009-12-16MaNGOS merge: Mail System.win32
* Store loot in mail_loot_template indexed by mail template ids. * Implement proper creating mail text copy item from mail template based mail. * Move send functions to new MailDraft class from WorldSession. * Implement mails sending at player levelup. * Autor VladimirMangos, converted by me. --HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-10-06* Implement Spell 6962 by Muhaha & Nevan , based on ↵Muhaha
http://bitbucket.org/panaut0lordv/tc2-patches/src/tip/bgpetressurect --HG-- branch : trunk
2009-09-18*[8475] fixed some gcc-warnings Author: balrokmaximius
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos *[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce *[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos *[8496] Resolve some #include cycles and unsafe code. * Common.h -> Threading.h -> Errors.h -> Common.h * Remove reduncdent #include "ByteBuffer.h" in headers * Remove redundent #include "Auth/BigNumber.h" in headers * Avoid multyply data copy at use some now dropped functions in BigNumber. * Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber. * Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos. *[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos. *[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy *[8506] Add check for IsAutoComplete() in SendPreparedQuest(). For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems. Some additional code cleanup. Author: NoFantasy *[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no> Thanks to Stryker and onkelz28! --HG-- branch : trunk
2009-09-14Backed out changeset d3fe2d6d504a (please test your patches thoroughly ↵maximius
before getting me to push them ogeraisi) --HG-- branch : trunk
2009-09-14*Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)maximius
--HG-- branch : trunk
2009-09-11*[8474] Allow to delete BattleGround objects when any of invited players ↵maximius
didn't click to enter battle. Rename m_TeamScores500disadvantage to m_TeamScores500Disadvantage, and optimize its update. Patch is tested. Author: Triply *Added some missed changes that might of broken compile in the last 2~ commits. *Some fixes to Warlock's Death Coil by Gyullo. *Last MaNGOS merge until KingPin says otherwise.. --HG-- branch : trunk