Commit Graph

896 Commits

Author SHA1 Message Date
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
n0n4m3 2028f0658b Removed mtmaps OpenMP
Implement mtmaps based on ACE
For stable work MapUpdate.Threads=2 in config

--HG--
branch : trunk
2009-12-17 07:34:00 +01:00
n0n4m3 8507b7da99 Check session for existance in Player::SendDirectMessage
--HG--
branch : trunk
2009-12-17 07:11:44 +01:00
n0n4m3 1ae1171f95 Removed unneeded function UpdateArenaFields
--HG--
branch : trunk
2009-12-17 07:10:39 +01:00
n0n4m3 fa4685da7c Fixed possible dual spec exploits
--HG--
branch : trunk
2009-12-17 06:57:01 +01:00
n0n4m3 365f0ae562 Replace some assert with return statement, fixed some crash bugs
--HG--
branch : trunk
2009-12-17 06:49:36 +01:00
win32 bf2c3fd8cf MaNGOS merge: Mail System.
* Store loot in mail_loot_template indexed by mail template ids.
* Implement proper creating mail text copy item from mail template based mail.
* Move send functions to new MailDraft class from WorldSession.
* Implement mails sending at player levelup.
* Autor VladimirMangos, converted by me.

--HG--
branch : trunk
2009-12-16 18:58:36 +02:00
Kudlaty 379cbb72af Mangos merge: [8874] Extract player skills from data blob. #526
Converted by Azazel.

--HG--
branch : trunk
2009-12-14 20:47:43 +01:00
Brian fa1467e9fe * Remove code that was having the SrcItemId mandatorily removed on quest
* complete. If the SrcItemId is supposed to be destoryed, the item ID will be
* in ReqItemId or ReqSrcItemId

--HG--
branch : trunk
2009-12-13 21:03:28 -07:00
spp df76273dd0 Check of required skill value and level in Item enchants, by azazel. Closes #512
* Added some cosmetic changes to the original patch

--HG--
branch : trunk
2009-12-13 09:17:12 +01:00
maanuel b3d1b0ef3e Fix issue in skill points by MetaphysicalDrama, tested by Gyullo. Closes #599
--HG--
branch : trunk
2009-12-10 12:53:02 -03:00
spp 5812971bac Add missing tables to Player::RemoveFromDB, by tali. Closes #648
--HG--
branch : trunk
2009-12-06 23:38:37 +01:00
spp ed6f818dfd Reset druid/rogue combo points before adding a combo point to new target, by thenecromancer. Closes #91
--HG--
branch : trunk
2009-12-06 23:13:38 +01:00
Machiavelli 2b9dfe7299 Do not delete realm first achievements from character_achievement in Player::DeleteFromDB.
NOTE: These achievements have flags & 256 in DBC. The IDs are currently excluded in the SQL delete query, hard coded. Might be room for improvement down the road.

--HG--
branch : trunk
2009-12-06 20:07:08 +01:00
tartalo d7262a6298 Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494
--HG--
branch : trunk
2009-12-01 11:43:57 +01:00
Machiavelli f6d80f9da4 Fix some issues with fishing. Closes #421, patch by make_the_king
--HG--
branch : trunk
2009-11-30 16:54:33 +01:00
Kudlaty 353a9f3740 Apply #413
Implementation of Ring of Valor (Orgrimmar Arena)
Patch by Spp and Opterman

--HG--
branch : trunk
2009-11-27 02:03:50 +01:00
Brian 5e83d4779e * Fix Daily quests so they can be completed even if the player logs out.
*
* Thanks elron103 and disassebler

--HG--
branch : trunk
2009-11-26 13:52:21 -07:00