aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
AgeCommit message (Collapse)Author
2010-02-05A great purge of obsolete macros.Xanadu
--HG-- branch : trunk
2010-02-03*Move object's field\visibility update functions to object from accessorsilver1ce
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them --HG-- branch : trunk
2010-02-02* Fixed reputation buying from vendors where the items had 0 for Req repBrian
* faction, but >0 for Req rank. In that case it pulls the faction of the * vendor. * HUGE thanks to QAston and silverice --HG-- branch : trunk
2010-01-31Fix Metagem bug exploit. Thanks Azazel and p.alexej.Trazom62
Fixes issue #579. Fixes issue #453. --HG-- branch : trunk
2010-01-31*Add support for spells in npc_trainer table with multiple ↵QAston
SPELL_EFFECT_LEARN_SPELL, this fixes problems with learning such spells from trainers. --HG-- branch : trunk
2010-01-30Remove unnecesary item enchants checksSpp
By Az@zel Closes issue #382 --HG-- branch : trunk
2010-01-30*Add error checks at spell_required table loadingQAston
*Allow spell_required table to store more than 1 spell learn requirement for a spell *spell_required table data is removed from world.sql and since this commit the data for it should be maintained by db project you're using. --HG-- branch : trunk
2010-01-30*Fix the dead loop in Player::removeSpell, or at least optimize the cycle.QAston
--HG-- branch : trunk
2010-01-29* Implement ↵XTZGZoReX
CMSG_CORPSE_MAP_POSITION_QUERY/CMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE opcodes. Thanks to: Ceris, Lightguard, raczman for helping with research/code. * Fix SMSG_QUERY_TIME_RESPONSE use/structure. Patch/research by TOM_RUS. --HG-- branch : trunk
2010-01-26* moved IsGameObjectOfTypeInRange to debug log levelBrian
--HG-- branch : trunk
2010-01-24implement ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (achievement Epic, Superior)Trazom62
remove hack for ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT and ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT (achievement Needy, Greedy) need DB support --HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
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-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk
2010-01-21Send all 24 bits of spell Id for vehicle spell actionsthenecromancer
--HG-- branch : trunk
2010-01-21Implement minimal arena team size for some items arena rating requirements.win32
Autor LordJZ. --HG-- branch : trunk
2010-01-20* Wintergrasp removal -- part 4: "How deep does the cancer run?"Brian
--HG-- branch : trunk
2010-01-20Fixes #420 fixed out-of-range group member's position update, which broken ↵silver1ce
after 7014f421c8 --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Cleanups before delete after not successfull load pet from db. Thanks to ↵QAston
Drahy for debug traces. --HG-- branch : trunk
2010-01-18Auras with turn/move interrupt flags are now removed for creatures when they ↵silver1ce
turn/move, cleanup --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Auto-leave player at login back to bg/arena when bg/arena finished. by ↵n0n4m3
VladimirMangos. --HG-- branch : trunk
2010-01-16Fixed item dupe and apply enchantment while disarm state original patch by ↵n0n4m3
zhenya. --HG-- branch : trunk
2010-01-16Propertly update combat ratings fields, by VladimirMangos.n0n4m3
--HG-- branch : trunk
2010-01-14two more duplicate DELETE FROM in Player::DeleteFromDBSpp
--HG-- branch : trunk
2010-01-13* Remove duplicate DELETE FROM transaction in Player::DeleteFromDB for ↵XTZGZoReX
character_queststatus_daily. Thanks to manuel for reporting. --HG-- branch : trunk
2010-01-13* Merge.XTZGZoReX
--HG-- branch : trunk
2010-01-13Backed out changeset: 52e769d95f14XTZGZoReX
--HG-- branch : trunk
2010-01-13* Fix CRLF.XTZGZoReX
--HG-- branch : trunk
2010-01-13Removed all my commits for today, this is hack? really? okeyn0n4m3
--HG-- branch : trunk
2010-01-13Use replace into for character saves. This prevent crash on SaveToDB cause ↵n0n4m3
mtmaps. --HG-- branch : trunk
2010-01-13Fix character sheet showing wrong values for weapon dependant damage modsthenecromancer
--HG-- branch : trunk
2010-01-13Change only Body/Shield armor to count as base armor, and correctly add ↵thenecromancer
bonus armor on items as TOTAL_VALUE This fixes various armor modifiers --HG-- branch : trunk
2010-01-13Send SMSG_TIME_SYNC_REQ periodicly (period guessed though)thenecromancer
--HG-- branch : trunk
2010-01-13Implement vehicles created by player mounts.thenecromancer
Original idea by Elmaster, packet research by Wrong, ty. --HG-- branch : trunk
2010-01-13Fix problems with action buttons related to switching specsthenecromancer
*saving spells without saving current talent map and m_activeSpec is not good idea at all, this might allow players various exploits *send expected packet to correctly handle action bar --HG-- branch : trunk
2010-01-10*cleaned up SharedDefinesRat
--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
2010-01-06Reverted commit ba4294dec1. n0n4m3 asked me to do it.Astellar
--HG-- branch : trunk
2010-01-06fixed the bug that GetVmapHeight returns incorrect height on terrains(flying ↵silver1ce
units fall below map etc) also unlocked max ray lenght for getHeight, by default it's 10 yards --HG-- branch : trunk
2010-01-01Fixed instance reset when high server uptime, thx Wowka321n0n4m3
--HG-- branch : trunk
2009-12-30* re-fix repeatable quests so that they are completable if the playerBrian
* logs out and logs back in. * Thanks to Aokromes for pointing it out. --HG-- branch : trunk
2009-12-27Fixed starting DK skill level, by blackmanosn0n4m3
--HG-- branch : trunk
2009-12-27Fixed Heirloom Experience Bonus +10%. by edrinnn0n4m3
--HG-- branch : trunk
2009-12-26Fixed Mana Gems, implement SPELL_EFFECT_CREATE_MANA_GEM and revert prev. ↵n0n4m3
commit... --HG-- branch : trunk
2009-12-26Fixed items Mysterious Egg, Disgusting Jar (need db support).n0n4m3
--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-22Allow spell cast on an NPC that is linked to a KillCredit to count toward ↵Machiavelli
the KillCredit. --HG-- branch : trunk
2009-12-21* Add support for RewSpellCast=-1. If -1 remove all auras applied to player atBrian
* quest start. * Patch by Kudlaty -- THANK YOU! --HG-- branch : trunk