Commit Graph

97 Commits

Author SHA1 Message Date
QAston feb7acf8aa *spell_linked_spell entry for Deterrance. Resolves #237.
--HG--
branch : trunk
2010-01-10 14:51:34 +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
Brian f91b289733 * Added support for outputting phasemask in .npc info
--HG--
branch : trunk
2010-01-07 21:43:55 -07:00
Astellar b0e7dc95a4 Fixes issue 152. Now Improved Water Shield works as intended.
1. Removed hardcoded proc chance for Lesser Healing Wave (all ranks had equal proc chance).
2. Added proc chance for Chain Heal (patch 3.2).
3. Fixed bug with Lesser Healing Wave and Chain Heal rolled default spell proc chance at first and then correct chance in dummy proc. So they have never ever proced for low ranks of the talent.
4. Removed consumption of charges (patch 3.2).

--HG--
branch : trunk
2010-01-07 00:24:58 +03:00
Astellar 082e7bac47 DB update to have correct Windfury proc chance for already commited hack :)
--HG--
branch : trunk
2010-01-05 21:08:44 +03:00
Astellar a886552c85 Glyph of Blocking proc moved to DB.
--HG--
branch : trunk
2010-01-05 15:52:44 +03:00
Astellar 5f147e5fa2 SQL changes for previous commit.
--HG--
branch : trunk
2010-01-05 12:25:33 +03:00
_manuel_ 0e18bc37c2 Removed moveflags column from creature_addon and creature_template_addon. Thanks to Zor and raczman.
--HG--
branch : trunk
2010-01-02 19:52:08 -03:00
p0wer 421189a3cb Fix Art of War to only proc off critical hits. Thanks Visagalis
--HG--
branch : trunk
2010-01-02 14:40:50 -06:00
p0wer e17eea4057 Change ppm (max procs per minute) to be read from the dbc. Seal of Command will no longer be limited
to 7 procs per minute, and will now be able to cast on every hit.

--HG--
branch : trunk
2009-12-28 17:55:43 -06:00
_manuel_ ca36a951cc Added explanation about Spell Linked Spell in world.sql, it is also in the wiki.
--HG--
branch : trunk
2009-12-27 21:25:11 -03:00
_manuel_ 3e97b6d55a Fixed spell 66865 used by Boss Eadric the Pure.
--HG--
branch : trunk
2009-12-27 21:07:36 -03:00
maanuel b916fa09f4 Support for spell 66680 used by Boss Argent Confessor Paletress.
--HG--
branch : trunk
2009-12-26 20:25:49 -03:00
n0n4m3 9d015dfce8 Fixed spell Reaping, thx Themris.
--HG--
branch : trunk
2009-12-26 13:56:32 +01:00
p0wer acdc4ca15b * More updates to creature_classlevelstats. By Malcrom.
--HG--
branch : trunk
2009-12-23 09:11:52 -06:00
XTZGZoReX 69def3b335 * Delete now unused "reload npc_option" chat command.
--HG--
branch : trunk
2009-12-23 11:37:38 +01:00
p0wer 7590479186 * Add support for different gmlevel's for different realms.
*
* Using the value -1 will add the same value for all realms.
* Make sure to apply the updates.
* Information regarding this patch will be posted on the database forums soon.
*
* Thanks to Sundark and the Ilixiuemu team(for original patch)

--HG--
branch : trunk
2009-12-21 21:08:29 -06:00
win32 3ab7f40932 Add spell proc for Glyph of Seal of Command
--HG--
branch : trunk
2009-12-21 18:05:51 +02:00
maanuel 89fa7cf367 Support for spell Emerge Summon (54851) used by Drakkari Colossus. Please apply too the sql fix for commit 6674 on tdb forums.
--HG--
branch : trunk
2009-12-20 21:08:53 -03:00
Brian 8a560ca408 * Fixed SQL in commit 6666
--HG--
branch : trunk
2009-12-20 20:41:20 -07:00
Brian 5300226fee * Added support for using a lookup table for creature mana / health
* 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 20:23:18 -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
teacher 8a5df265c2 Properly updated world.sql to current rev.
world_spell_full.sql and world_trinity_string_full.sql files removed.
From now on Devs will update world.sql only, whther it is matter of structure changes or data content for the tables which must be handled by core devs.
All the other tables will be handled by DB projects.

--HG--
branch : trunk
2009-12-20 18:47:10 +01:00
Brian ea785c9788 * Added support for GO type 6 (TRAP) to have a negative value in data6
* This will allow proper data to be used

--HG--
branch : trunk
2009-12-20 09:27:44 -07: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
Brian 31c6b10a19 * Add support for the use of Gameobject type 10 (GOOBER) use when not on quest
* if data1=-1

--HG--
branch : trunk
2009-12-20 09:03:45 -07:00
n0n4m3 e699949274 Missing Changes
--HG--
branch : trunk
2009-12-18 07:28:07 +01:00
n0n4m3 bb2ddadae9 Added missing sql updates
--HG--
branch : trunk
2009-12-18 07:06:53 +01:00
n0n4m3 4ef64a65e5 Added sql updates 3.1.3-3.2.2a
--HG--
branch : trunk
2009-12-17 15:49:28 +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
Brian cca31e558f * Change AllowableClass and AllowableRace fields to SIGNED INT to allow for
* the larger values that are coming from WDB.
* Thanks to Malcrom

--HG--
branch : trunk
2009-12-11 17:44:51 -07:00
Brian 7d754c3f7f * Added support for questItem5 and questItem6 in creature and gameobject
* templates.
*
* Thanks to Malcrom for doing the research.

--HG--
branch : trunk
2009-11-26 12:23:33 -07:00
Kudlaty cbd9709d23 QuestLevel can be -1. Quest with this level are allways show yellow ? above quest giver
--HG--
branch : trunk
2009-11-13 17:15:59 +01:00
maximius b257a28fa9 *Cleanup, fix many cases of unoptimized loops, potential crashes, 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-11-01 17:53:07 -08:00
Kudlaty b4cd005f03 Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ids are no longer incorrectly chosen based on player faction.
--HG--
branch : trunk
2009-09-21 07:52:16 +02:00
maximius fd88d0dc08 *[8462] Fix database table to allow emote id bigger than 255 Author: Athor
--HG--
branch : trunk
2009-09-11 13:27:44 -07:00
Chaz Brown ce0a56b255 Add forgotten change to world.sql and update script for scarlet ghouls (quest 12698) so they are in defensive mode. Also make it so, if you abandon the quest, you don't get to keep your minions... Still need some official info on these, if anyone can help.
--HG--
branch : trunk
2009-09-10 01:48:09 -04:00
QAston 629420b54b *Fix Crypt Fever and Ebon Plague disease damage mod.
--HG--
branch : trunk
2009-08-27 22:39:06 +02:00
QAston 6b703d600b *Add spell_dbc table to store dbc entries not present in client
*Remove workaround from Demonic Circle code and use the sql table instead.

--HG--
branch : trunk
2009-08-27 17:44:30 +02:00
Anubisss 390257b2f6 *Delete table spell_affect's structure from world.sql
*If you didnt drop it just run: 4542_8191_world_spell_affect.sql from sql's updates.

--HG--
branch : trunk
2009-08-27 01:49:02 +02:00
QAston 445b8236a1 *Implement aura type SPELL_AURA_MOD_XP_QUEST_PCT (291) and fix SPELL_AURA_MOD_XP_PCT(200) handler.
*Correct structure stored in world.sql for npc_spellclick_spells and fix world_script_text application.

--HG--
branch : trunk
2009-08-17 14:55:50 +02:00
QAston 41c12d173b *Add spell_bonus_data for lightwell - by Elron
*Add aura_required, aura_forbidden, user_type columns to npc_spellclick_spells table for additional requirement checks
*Remove workarounds from lightwell code and use new npc_spellclick_spells fields instead.

--HG--
branch : trunk
2009-08-17 02:53:39 +02:00
maximius 84ab289a40 *Cleaned up SQL, updated FULLs
--HG--
branch : trunk
2009-08-08 21:51:55 -07:00
QAston 0fdd7cd5de *Remove data from world.sql - it exists now only for structure documentation.
*Remove debug spell_check command - such things shouldn't belong to core.

--HG--
branch : trunk
2009-07-31 15:35:31 +02:00
Kudlaty 3c04635694 Fix build on windows.
Fix command ticket viewname - thx Deadlyskunk for point this
fix setlink command group, add missing commands to db - patch by XTElite1

--HG--
branch : trunk
2009-07-26 02:00:35 +02:00
Anubisss 370b38312a *Drop command reload spell_affect from DB. Its already dropped from core.
--HG--
branch : trunk
2009-07-25 02:02:02 +02:00
Anubisss 56d2bfa56f *Add table spell_elixir to world_spell_full.sql
--HG--
branch : trunk
2009-07-21 21:07:10 +02:00
QAston bc4d862263 *Add new column to spell_bonus_data table to store ap bonus for periodic auras.
*Use -1 to mark entries, for which default spell bonus calculation should be used.
*Move periodic auras ap bonuses from core to db.
*Add coefficient for Black Arrow.

--HG--
branch : trunk
2009-07-18 22:18:47 +02:00
Anubisss 692c927e75 *Show online players numbers in command server info.
--HG--
branch : trunk
2009-07-12 00:16:56 +02:00
Drahy a68d8302d5 * Updated world.sql
* Fixed last import errors

--HG--
branch : trunk
2009-07-07 00:46:11 +02:00