aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
AgeCommit message (Collapse)Author
2010-05-20Fix talent Feral Spirit's wolves damage.Anubisss
Patch by Karolis.Rudzevicius. Closes issue #2145. --HG-- branch : trunk
2010-04-21* Add some more transactioncontrol to pet database handling + adjust ↵click
character_aura keys to avoid duplicates --HG-- branch : trunk
2010-04-16*Fix: Pets now properly avoid doublestacking talentbased auras where they ↵click
shouldn't This also removes the double-filed entries in pet_auras, meaning no more SQL-complaints in the server logs regarding duplicates Also fixes (properly) pets losing/readding pet auras when dismissed/lost on a boat/lost on flightpath usage Fix by click and Liberate --HG-- branch : trunk
2010-04-14Fix IsPetAura() so it's actually working properly - typos ftw.click
--HG-- branch : trunk
2010-04-14Retain pet buffs/debuffs/spells when pet is resummoned after ↵click
lagout/flightpath unsummon Research and patch by Liberate (minor assist by click) Fixes issue #689 Fixes issue #794 Fixes issue #1454 --HG-- branch : trunk
2010-04-11* Add: Shadowfiend damage and spellpower scaling, this will need feedback ↵click
(are the numbers correct?) Closes issue #129 - Patch by Kaelima --HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code 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-04-07Code style (game + scripts only):Spp
"while(" --> "while (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-04-05Fix pet leveling logic. Patch by click.XTZGZoReX
--HG-- branch : trunk
2010-03-26Corrected script for Glyph of Feral Spirit, aura must be checked on Owner ↵_manuel_
not Pet. By Gyullo. --HG-- branch : trunk
2010-03-19Fix hunter pet talent reset feature.Machiavelli
Thanks to Xanadu and nalimleinad for aiding research. --HG-- branch : trunk
2010-03-17*fix Feral Spirit's healing (Spirit Hunt)Rat
--HG-- branch : trunk
2010-03-11Convert some C style casts to new functionsthenecromancer
--HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-07Added new type-safe cast functions.raczman
This, when properly used, should get rid of most memory corruption issues, currently, casting types C-style with no checks leads to some abstract crashing. Functionality is same as with dynamic_cast<>, but with no RTTI check - so when casting into invalid type you will receive NULL, and most probably crash. At the same time, i took the liberty to convert most Player* casts to ToPlayer(). Still needs crapload of casts being moved to new facility. --HG-- branch : trunk
2010-02-14* Core switch to client 3.3.2 (11403)Brian
* 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-01-27Removed tabs. Closed issue 397 and 171._manuel_
--HG-- branch : trunk
2010-01-27Implemented fix for Spirit Wolf (feral spirit talent). By Gyullo_manuel_
--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-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Fixed some problems with pets, port from tc1, by krz, thx Frankir.n0n4m3
--HG-- branch : trunk
2010-01-13Backed out changeset: 52e769d95f14XTZGZoReX
--HG-- branch : trunk
2010-01-13Removed all my commits for today, this is hack? really? okeyn0n4m3
--HG-- branch : trunk
2010-01-13Fixed crash in load Pet Aura, cause mtmaps.n0n4m3
--HG-- branch : trunk
2010-01-13Fixed spell Snake Trap, port from tc1, thx Frankir.n0n4m3
--HG-- branch : trunk
2010-01-10Fix a mem leak.Anubisss
--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-01Fix unknown error message for summoned fire elemental and risen ghoul.p0wer
--HG-- branch : trunk
2009-12-26Fixed Glyph of Feral Spiritn0n4m3
--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-19Fix problem with max pet distance from owner. by VladimirMangosn0n4m3
--HG-- branch : trunk
2009-12-17[8987] Allow swap spell and command/reaction in pet action bar.n0n4m3
--HG-- branch : trunk
2009-12-17Corrected gargoyle damage calculationn0n4m3
--HG-- branch : trunk
2009-12-17Fixed Mirror Image DisplayId from owner, by Alexsotn0n4m3
--HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-11-17*Convert some tabs to 4 spaces.maximius
--HG-- branch : trunk
2009-11-01*Fix getLevel() being parsed as a char in ostringstream usemaximius
--HG-- branch : trunk
2009-11-01*Cleanup, fix many cases of unoptimized loops, potential crashes, ↵maximius
excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on.. *Proper Maexxna Web Spray locations (old locations sent players flying into the air) --HG-- branch : trunk
2009-10-31*Correctly update negative aura duration at loading, thanks Sisifmaximius
--HG-- branch : trunk
2009-10-31Fix Feeding Frenzy, Cobra Reflexes, Cornered. Now they are active only when ↵Kudlaty
victim hp is below certain percentage. Patch by thenecromancer, updated by krz --HG-- branch : trunk
2009-10-18*Cleanupmaximius
--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