Commit Graph

913 Commits

Author SHA1 Message Date
QAston
a1bbbd1421 *Cleanups before delete after not successfull load pet from db. Thanks to Drahy for debug traces.
--HG--
branch : trunk
2010-01-18 23:12:35 +01:00
silver1ce
cfca61b176 Auras with turn/move interrupt flags are now removed for creatures when they turn/move, cleanup
--HG--
branch : trunk
2010-01-18 21:51:45 +02:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
n0n4m3
585f4317c1 Auto-leave player at login back to bg/arena when bg/arena finished. by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:27:15 +03:00
n0n4m3
15dc23ad45 Fixed item dupe and apply enchantment while disarm state original patch by zhenya.
--HG--
branch : trunk
2010-01-16 19:21:07 +03:00
n0n4m3
e031df23fc Propertly update combat ratings fields, by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:05:27 +03:00
Spp
0077466598 two more duplicate DELETE FROM in Player::DeleteFromDB
--HG--
branch : trunk
2010-01-14 07:29:55 +01:00
XTZGZoReX
5045c637b3 * Remove duplicate DELETE FROM transaction in Player::DeleteFromDB for character_queststatus_daily. Thanks to manuel for reporting.
--HG--
branch : trunk
2010-01-13 18:41:08 +01:00
XTZGZoReX
53f9e0fba0 * Merge.
--HG--
branch : trunk
2010-01-13 18:25:46 +01:00
XTZGZoReX
f5998611c3 Backed out changeset: 52e769d95f14
--HG--
branch : trunk
2010-01-13 18:24:23 +01:00
XTZGZoReX
5a9ef604e2 * Fix CRLF.
--HG--
branch : trunk
2010-01-13 18:22:31 +01:00
n0n4m3
f7ad3aefc8 Removed all my commits for today, this is hack? really? okey
--HG--
branch : trunk
2010-01-13 19:11:46 +03:00
n0n4m3
edeb6bf284 Use replace into for character saves. This prevent crash on SaveToDB cause mtmaps.
--HG--
branch : trunk
2010-01-13 15:01:39 +03:00
thenecromancer
a11efab2a2 Fix character sheet showing wrong values for weapon dependant damage mods
--HG--
branch : trunk
2010-01-13 11:56:20 +01:00
thenecromancer
96a447dc8e Change only Body/Shield armor to count as base armor, and correctly add bonus armor on items as TOTAL_VALUE
This fixes various armor modifiers

--HG--
branch : trunk
2010-01-13 11:51:59 +01:00
thenecromancer
e00fd0791b Send SMSG_TIME_SYNC_REQ periodicly (period guessed though)
--HG--
branch : trunk
2010-01-13 11:19:16 +01:00
thenecromancer
ea4e25f3aa Implement vehicles created by player mounts.
Original idea by Elmaster, packet research by Wrong, ty.

--HG--
branch : trunk
2010-01-13 11:16:38 +01:00
thenecromancer
44e2bfce77 Fix problems with action buttons related to switching specs
*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-13 09:45:05 +01:00
Rat
5b6079ea67 *cleaned up SharedDefines
--HG--
branch : trunk
2010-01-10 16:27:47 +01:00
QAston
8e9d2cdf01 Update aura system:
* 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-10 01:23:15 +01:00
Astellar
3c3197ae71 Reverted commit ba4294dec1. n0n4m3 asked me to do it.
--HG--
branch : trunk
2010-01-06 20:43:41 +03:00
silver1ce
f82d5cb3fc fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards

--HG--
branch : trunk
2010-01-06 12:15:02 +02:00
n0n4m3
f497ae3ae0 Fixed instance reset when high server uptime, thx Wowka321
--HG--
branch : trunk
2010-01-01 17:29:53 +01:00
Brian
70a6ff4e30 * re-fix repeatable quests so that they are completable if the player
* logs out and logs back in.
* Thanks to Aokromes for pointing it out.

--HG--
branch : trunk
2009-12-30 14:37:53 -07:00
n0n4m3
fa1945d3a9 Fixed starting DK skill level, by blackmanos
--HG--
branch : trunk
2009-12-27 16:57:23 +01:00
n0n4m3
7e2855f53b Fixed Heirloom Experience Bonus +10%. by edrinn
--HG--
branch : trunk
2009-12-27 11:49:47 +01:00
n0n4m3
947b258479 Fixed Mana Gems, implement SPELL_EFFECT_CREATE_MANA_GEM and revert prev. commit...
--HG--
branch : trunk
2009-12-26 18:25:49 +01:00
n0n4m3
066efa09e3 Fixed items Mysterious Egg, Disgusting Jar (need db support).
--HG--
branch : trunk
2009-12-26 17:52:33 +01:00
n0n4m3
250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better 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-23 08:04:10 +01:00
Machiavelli
da35e70579 Allow spell cast on an NPC that is linked to a KillCredit to count toward the KillCredit.
--HG--
branch : trunk
2009-12-22 14:06:26 +01:00
Brian
36d30faabf * Add support for RewSpellCast=-1. If -1 remove all auras applied to player at
* quest start.
* Patch by Kudlaty -- THANK YOU!

--HG--
branch : trunk
2009-12-21 14:48:30 -07:00
Brian
c4ac6323b0 * Added support for RepObjectiveFaction2 / RepObjectiveValue2 (opposite
* faction) IE: need to LOSE reputation with that faction.
* Original patch by Brian / Ported to latest rev. by Kudlaty -- THANKS!

--HG--
branch : trunk
2009-12-20 16:51:41 -07:00
n0n4m3
9f40c92fb4 Restore patch: No Fly Zone using Spell
--HG--
branch : trunk
2009-12-20 18:02:57 +01:00
Rat
6fe36efe0f *apply trinity style to whole source
*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-20 15:20:04 +01:00
win32
7c9f6b4bc3 Merge MaNGOS, Gossip System. Autor NoFantasy.
* DB support required
* Closes #859

--HG--
branch : trunk
2009-12-20 13:35:08 +02:00
n0n4m3
1c0f2d233f Fix problem with max pet distance from owner. by VladimirMangos
--HG--
branch : trunk
2009-12-19 20:02:38 +01:00
n0n4m3
5a3b3d83ee Fixed some typos and revert one commit
--HG--
branch : trunk
2009-12-19 19:46:07 +01:00
n0n4m3
1d79bc51ea Implement player's pet resilience, also fix DoT case. by VladimirMangos and thx tali
--HG--
branch : trunk
2009-12-19 18:46:51 +01:00
n0n4m3
0b0b7900a3 Not send unexpected reply whisper to sender for addon messages. by VladimirMangos
--HG--
branch : trunk
2009-12-19 18:10:39 +01:00
n0n4m3
e1e11ed43e Add basic support for QUEST_FLAGS_PARTY_ACCEPT (2). by NoFantasy
--HG--
branch : trunk
2009-12-19 18:08:07 +01:00
n0n4m3
ef2cbee517 Avoid not needed too oftent send update data, cleanups. by SilverIce
--HG--
branch : trunk
2009-12-19 17:58:45 +01:00
n0n4m3
243f33b5ea Implement new visibility system, based on Silverice patch for mangos
--HG--
branch : trunk
2009-12-19 10:12:40 +01:00
maximius
dc1207139a *Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..
--HG--
branch : trunk
2009-12-18 13:41:30 -08:00
n0n4m3
6b405c63cc Basic support for item refund system added in 3.1. by Machiavelli
--HG--
branch : trunk
2009-12-17 18:35:59 +01:00
n0n4m3
eccf162be2 Fixed compile errors and some typos
--HG--
branch : trunk
2009-12-17 14:06:20 +01:00
n0n4m3
89656d5749 Restore some commits from trinitycore2 3.1.3
--HG--
branch : trunk
2009-12-17 13:07:38 +01:00
n0n4m3
e91d18c1f5 Update Player for 322a
--HG--
branch : trunk
2009-12-17 12:06:19 +01:00
n0n4m3
863fca80eb Removed some redundant player->SaveToDB calls, original autor balrok
--HG--
branch : trunk
2009-12-17 07:56:20 +01:00
n0n4m3
2b5151f50c One big insert for _SaveSpellCooldowns, original autor balrok
--HG--
branch : trunk
2009-12-17 07:46:21 +01:00