aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetHandler.cpp
AgeCommit message (Collapse)Author
2010-01-30Fix error with undeclared namethenecromancer
--HG-- branch : trunk
2010-01-30*Do not check for charminfo->petnumber when responding to Pet name querythenecromancer
*Send Unknown if pet is not found by object accessor --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-13* Fix CRLF.XTZGZoReX
--HG-- branch : trunk
2010-01-13Allow pet cast spells unaffected by global cooldown, while global cooldown ↵thenecromancer
is active --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-19Fixed some typos and revert one commitn0n4m3
--HG-- branch : trunk
2009-12-19Avoid not needed too oftent send update data, cleanups. by SilverIcen0n4m3
--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-17[9009] More fixes in pet action bar buttons swap.n0n4m3
--HG-- branch : trunk
2009-12-17[8987] Allow swap spell and command/reaction in pet action bar.n0n4m3
--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-09*PetAI update;Machiavelli
Pets now start attacking their owners target in defensive mode as soon as the hunter does (3.0.2 change) Correctly chase target if attack command was given after pet has set gaze on target from defensive mode with chase = false --HG-- branch : trunk
2009-09-10*Cleanup comments, update THANKS (no idea if I missed anybody o_O), added ↵maximius
Themris' Warlock's Death Coil healing and damage fix, corrected some typos --HG-- branch : trunk
2009-09-10*MrSmite's PetAI patch, plus Hawthorne's Instant Flight Paths (now with ↵maximius
actual code! >_<) --HG-- branch : trunk
2009-09-01*Fix some restriction of pet spell cast.megamage
--HG-- branch : trunk
2009-08-29*More update about positions.megamage
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite. --HG-- branch : trunk
2009-08-23*Update vehicle system. Make vehicle a seperate class from creature.megamage
--HG-- branch : trunk
2009-08-19 [8378] Use exceptions instead of explicit size checking for each packet ↵megamage
Author: arrai CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd could crash due to the asserts in ByteBuffer.h. That was exploitable by malicious players. Furthermore, there were duplicate checks: Additionally to CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye on not exceeding the packet boundaries - just to crash the server for sure in such a case. To prevent memory leaks or other undesirable states, please read in every handler all variables _before_ doing any concrete handling. --HG-- branch : trunk
2009-07-22*Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 ↵QAston
(SPELL_AURA_INITIALIZE_IMAGES) *Handle CMSG_GET_MIRRORIMAGE_DATA opcode. *Save Minions follow angle to allow themmoving in a formation *Improvements in SpellAI: correctly evade and select attack target for creatures without threat list *Use SpellAI instead of PetAI for not controllable guardians *Only guardians with SUMMON_TYPE_PET are controllable now *Add script and template data for Mirror Image. *Thanks to Drahy for help. --HG-- branch : trunk
2009-07-10 [8126] Improvemets in player/pet/charter name checks. Author: VladimirMangosmegamage
* Implement new config options for minimal player/pet/charter name length (2 by default) * Better error reporting at problems in names. * Add check from max pet/charter name length (same as for player names at client side) --HG-- branch : trunk
2009-07-01 [8103] More wide use IsInWorld checks and delayed at teleport ↵megamage
operations. Author: Ambal * IsInWorld used to prevent return unexpected not in world objects. * Delayed operations need to process its in world state. --HG-- branch : trunk
2009-07-01*Backup your DB!megamage
[8098] Support uint32 spell ids in code. Author: VladimirMangos * Propertly work with uint32 spell ids in player action bar * Fix in same time bug with not save equipment set button with id==0 * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte * Propertly load uint32 spell ids from character_spell * Fixed types for some pet/creature related structure for spell id storing. --HG-- branch : trunk
2009-06-29*Fix the issue of water elemental GCD preventing freeze to be casted - by LarvaQAston
*Correct a typo in prev commit. --HG-- branch : trunk
2009-06-23[8056] Move SMSG_CLEAR_COOLDOWN into function and use it. Other cleanups. ↵QAston
Author:XTZGZoReX [8060] Store spell_pet_auras for auraeffects instead of by whole aura Author:hunuza. --HG-- branch : trunk
2009-06-18* More updating of iterator data types in loopsMachiavelli
--HG-- branch : trunk
2009-06-11*Switch to support client version 3.1.3megamage
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash. Source: Mangos Thanks to TOM_RUS for most work to make this switch possible ;) --HG-- branch : trunk
2009-06-08 [7980] Implement item use target requirements store and check (new table ↵megamage
`item_required_target`). Author: NoFantasy Signed-off-by: VladimirMangos <vladimir@getmangos.com> * Also implement this table reload * Static Spell::SendCastResult function for call not from spell code. Can be also used in scripts where need send explicitly spell cast error to client. --HG-- branch : trunk
2009-06-03*Allow water elemental to cast freeze while casting water bolt.megamage
--HG-- branch : trunk
2009-05-31 [7918] Improve portability in work with uint64 string format specifiers ↵megamage
and in code literals. Author: VladimirMangos * Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define. I64FMTD renamed to UI64FMTD for more clear name. * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals. Please always use UI64LIT(0x00001) instead less portable 0x00001LL --HG-- branch : trunk
2009-05-27 [7901] Refactoting pet action bar related code. Fixed some related bugs. ↵megamage
Author: VladimirMangos * Correctly update action bar at loading and other cases when listed unlearned/not existed spells * Avoid send data by PetSpellInitialize() many times while pet loading --HG-- branch : trunk
2009-05-25*Merge.megamage
--HG-- branch : trunk
2009-05-24 [7886] Drop use table `petcreateinfo_spell`megamage
This is first commit in chain for remove oudated and not used pet functionality. * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets) * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures) * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells. Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template. [7887] Drop pet spell teaching code, including field in character_pet. Author: VladimirMangos --HG-- branch : trunk
2009-05-21Added new config option: vmap.petLOSraczman
Enabling it makes pets do LOS check before attacking its target. --HG-- branch : trunk
2009-05-09*Allow dismiss possessed units.megamage
--HG-- branch : trunk
2009-05-06*Fix a bug that minipet cannot be dismissed.megamage
--HG-- branch : trunk
2009-05-02*Merge.megamage
*Also fix build in VC7 and VC8. --HG-- branch : trunk
2009-05-02*Update spell selection.megamage
--HG-- branch : trunk
2009-04-30*Merge.megamage
--HG-- branch : trunk
2009-04-30*Explicitly implement spell target 28 and 29.megamage
--HG-- branch : trunk
2009-04-30*Merge.megamage
--HG-- branch : trunk
2009-04-30*Use canattack to check if canattack in pethandler and combathandlermegamage
--HG-- branch : trunk
2009-04-29*let petattack command use provided guid instead of player selection. By ↵megamage
thenecromancer --HG-- branch : trunk
2009-04-29[7731] Some code cleanups, warrning fixes. Author: VladimirMangosmegamage
--HG-- branch : trunk
2009-04-29[7730] Some optimizantion and code style. Author: zhenyamegamage
--HG-- branch : trunk
2009-04-27[7716] Fixed some typos and possible crashes. Author: AlexDerekamegamage
--HG-- branch : trunk