aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
AgeCommit message (Collapse)Author
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-01-30* Set the default spawntimesecs for creatures / gameobjects added in game to ↵Brian
5 minutes * Was 25 seconds * Thanks Paradox --HG-- branch : trunk
2010-01-23* Remove CellLock class and all cell-level thread locking.XTZGZoReX
** It was wasting CPU power as cell-level locking is not needed. ** Our multithreading is on map-level, not cell-level. ** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data. ** Some minor cleanup in Cell::Visit/Map::Visit. --HG-- branch : trunk
2010-01-21* Backed out changeset c7c6faf26cbdBrian
* A different solution to damage will be implemented * You will need data from your DB provider if you don't have a backup --HG-- branch : trunk
2010-01-21* Add support for basedmg and baserangeddmg values in creature_classlevelstats.win32
* Remove mindmg, maxdmg, attackpower and ranged field in creature_template and add Dmg_Mod, Rangeddmg_Mod field. --HG-- branch : trunk
2010-01-20Allow spells with effect mechanic to allow apply other effects when effect ↵thenecromancer
with mechanic would be fail due to effect/state immunity. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Implement option to use delay in ForcedDespawn for creature, allow use ↵n0n4m3
delayed forced despawn also in EAI, by NoFantasy. --HG-- branch : trunk
2010-01-16Implement speed reduction at creatures DoFleeToGetAssistance, by NoFantasy.n0n4m3
--HG-- branch : trunk
2010-01-13Allow state/effect immunities ignore whole spell when one effect is immunedthenecromancer
(Fixes getting part of CC auras with some immunities) --HG-- branch : trunk
2010-01-10* Add support for base armor values in creature_classlevelstats.XTZGZoReX
* Change the table structure to be more core-friendly. * Remove armor field in creature_template and add Armor_mod field. * Also add static CreatureBaseStats::GetBaseStats() function for scripts. --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-07* Hopefully fix creature so they swim if InhabitType|2Brian
--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-02Removed moveflags column from creature_addon and creature_template_addon. ↵_manuel_
Thanks to Zor and raczman. --HG-- branch : trunk
2010-01-02The core should add the movementflags depending on the InhabitType._manuel_
--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-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
2009-12-20* Added support for using a lookup table for creature mana / healthBrian
* As long as creature level, class, and the proper expansion they are from are * set in creature_template, you will have 100% accurate health and mana. * Research and base stats table done by Malcrom -- THANK YOU! * Original patch by Kudlaty -- THANK YOU! * Updated and enhanced by Machiavelli - THANK YOU! * Optimizations by w12x, MrSmite, and XTZGZoReX -- THANK YOU! * Final code updating for current rev by XTZGZoReX -- THANK YOU! --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-20Merge MaNGOS, Gossip System. Autor NoFantasy.win32
* DB support required * Closes #859 --HG-- branch : trunk
2009-12-19Set creatures PvP state flag based on creature faction and renamerelated ↵n0n4m3
enum. by NoFantasy --HG-- branch : trunk
2009-12-19Add own function to send AI_Reaction packet. by NoFantasyn0n4m3
--HG-- branch : trunk
2009-12-18Now TrinityCore2 support 3.2.2a client, need extract new maps and dbc files. ↵n0n4m3
thx TOM_RUS, Win32, Machiavelli, VladimirMangos and all trinitycore team --HG-- branch : trunk
2009-12-18[8667] Correctly respawn pooled object in case the same object is selected ↵n0n4m3
for respawn [8701] Fixes and inprovements in pool system. thx Frankir --HG-- branch : trunk
2009-12-17Some fixes for GameObject, Chat, Creature, update DuelHandler for 322an0n4m3
--HG-- branch : trunk
2009-12-06Fix a crash in creature respawn, closes #566spp
--HG-- branch : trunk
2009-11-17*Fix the insane ghoul/vehicle power regen, by MetaphysicalDrama, closes #108maximius
--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*Fix a crash in Object.hmaximius
*Fix action button saving *Fix a crash on item swap in guild bank *Fix exploit moving after death in Unit.cpp *Fix assert fail at grid load in Creature.cpp Thanks Sisif for these! :) --HG-- branch : trunk
2009-10-28*Implement new LootMode system, and add some basic support in ↵maximius
boss_sartharion.cpp. Requires database support. --HG-- branch : trunk
2009-10-24*Disregard visibility state when evaluating a potential target.maximius
--HG-- branch : trunk
2009-10-23*Minor optimizationmaximius
--HG-- branch : trunk
2009-10-23*Cleanup Creature::_IsTargetAcceptable.maximius
--HG-- branch : trunk
2009-10-23*Use some more standard functions in _IsTargetAcceptable. Should also fix ↵maximius
the perma-unattackable boss issue. --HG-- branch : trunk
2009-10-22*Ignore unattackables, they are not suitable attackers or victims.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-13*If my target is attacking me, my target is acceptable.maximius
--HG-- branch : trunk
2009-10-13*Some cleanup, change some illogical conditions (if you can attack your ↵maximius
target is no reason to ignore the target, o_O) --HG-- branch : trunk
2009-10-10*Ignore react states in Creature::_IsTargetAcceptable.maximius
--HG-- branch : trunk
2009-10-10*Having to cast this seems silly to me. Oh well, farewell, const-ness!maximius
--HG-- branch : trunk
2009-10-10*Creature::_IsTargetAcceptable rewrite, should hopefully fix the bugs ↵maximius
ogeraisi reported. *Creature health regen patch, written and tested by Gyullo. --HG-- branch : trunk
2009-10-09*Blackfathom Deeps - Event: Aku'mai, by Tartalomaximius
*Split Personality Achivement, by Destalker *Halls of Lightning Fixes, by Destalker Volkhan fixes + Achievement Ionar Fix - without this he resets each time he is invisible, spamming sparks Arcing Burn - should be a debuff (and stackable, stackable part NYI :/) *Naxxramas - Thaddius - the aura shall affect only the character without the proper aura, by Trazom *Naxxramas - Kelthuzad - some timer adjustments (may need verification or tweaking) by Cass *Merges by Stryker, thanks to all authors and testers. [8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases. Author: VladimirMangos [8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon. Author: VladimirMangos [8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi. Author: Ambal [8532] Fixed situation where some items like 42947 were not giving spell power bonus. By: Ambal [8533] Not remove timed quest and correctly fail when time runs out. Add function to remove timed quest instead of direct access to set. Author: NoFantasy [8536] Fixed spell 62776. By: Ambal [8539] Check pet aura range at area aura update. By: Ambal [8546] Implement battleground bonusweekends call to arms. Also fix typo in auctionmgr. Author: balrok [8547] Implemented scriptcall: CorpseRemoved(uint32 & /*respawnDelay*/) it will be called when the corpse of the scripted creature get's removed, it's possible to adjust the next respawn inside the script. Author: balrok [8561] Replace another auras code call by explicit code [8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend() Proposed by vladimir. Comitter: balrok --HG-- branch : trunk
2009-10-06* Prevent totems from having random models.Machiavelli
--HG-- branch : trunk
2009-09-29*Friends shouldn't fight friends, even if that means you have to watch your ↵maximius
friends kill each other. --HG-- branch : trunk
2009-09-29*Whoops, typo (creature_template_addon, not creature_addon)maximius
--HG-- branch : trunk
2009-09-29*Add some error output for improper moveflags on flying creatures.maximius
--HG-- branch : trunk