Commit Graph

459 Commits

Author SHA1 Message Date
QAston
4cd4c4170f *Backout some WTF fixes. Do things correctly, or do not touch them at all...
*Really fix windows build.

--HG--
branch : trunk
2010-02-15 20:59:05 +01:00
n0n4m3
bcd4a48328 Removed stupid/not needed file Spellid.h.
--HG--
branch : trunk
2010-02-15 18:23:39 +01:00
Brian
486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
QAston
3df5bb041c *Way more correct way of selecting caster and target for Periodic Trigger auras.
--HG--
branch : trunk
2010-02-04 18:34:46 +01:00
QAston
6ec51e7bbc *Implement spell target type TARGET_GAMEOBJECT_NEARBY_ENTRY
--HG--
branch : trunk
2010-02-04 00:36:40 +01:00
thenecromancer
46c3236a14 Some changes to immunities
--HG--
branch : trunk
2010-02-03 16:43:47 +01:00
QAston
10695f9131 *Drop spell_stack_masks table
*Add spell_group_stack_rules table (for more info see wiki)
*The table is maintained by core team
*Move some spell specific out of core to the new table

--HG--
branch : trunk
2010-02-02 22:35:01 +01:00
QAston
a1256d88ee *drop spell_elixir table
*add spell_group table for storage of groups of spell (kinda obvious, isn't it?) and populate the table with converted spell_elixir table data
*the table is going to be maintained by core team
*fix percentage display at spell_ranks table loading
*add TARGET_UNIT_CASTER to allowed learn spell targets in npc_trainer table, thanks to Aokromes for noticing the issue.

--HG--
branch : trunk
2010-02-01 19:22:32 +01:00
QAston
ac388e6f21 *Add support for spells in npc_trainer table with multiple SPELL_EFFECT_LEARN_SPELL, this fixes problems with learning such spells from trainers.
--HG--
branch : trunk
2010-01-31 17:24:13 +01:00
QAston
ba59411178 *Update spell_script_target table validation.
--HG--
branch : trunk
2010-01-30 20:28:42 +01:00
QAston
a331b67244 *Add error checks at spell_required table loading
*Allow spell_required table to store more than 1 spell learn requirement for a spell
*spell_required table data is removed from world.sql and since this commit the data for it should be maintained by db project you're using.

--HG--
branch : trunk
2010-01-30 19:25:04 +01:00
QAston
785cb86c6a *Fix build with GCC, thanks to Brian.
--HG--
branch : trunk
rename : sql/updates/7234_world_spell_ranks.sql => sql/updates/7236_world_spell_ranks.sql
2010-01-29 19:08:42 +01:00
QAston
7776faa6ac *Typofix - Journeyman - rank 2 Apprentice - rank1
--HG--
branch : trunk
rename : sql/updates/7232_world_spell_ranks.sql => sql/updates/7233_world_spell_ranks.sql
2010-01-29 18:16:46 +01:00
QAston
9e31e08358 *Move spell rank extractor out of core, use sql table instead for easier maintaining of dependant database data.
--HG--
branch : trunk
2010-01-29 17:54:29 +01:00
QAston
3f6999f744 *Some cleanup in SharedDefines
*Implement spell target modes 96-103, 91, 92

--HG--
branch : trunk
2010-01-25 12:40:03 +01:00
Xanadu
91ee99a7bf Fix Frost Trap Aura spamming log due to nonexistent triggered spell
--HG--
branch : trunk
2010-01-24 23:10:15 +01:00
Rat
f10cb92298 *merge ScriptMgr::LoadOverridenDBCData to SpellMgrLoadSpellCustomAttr, patch by Azuritus, closes issue #444
--HG--
branch : trunk
2010-01-24 11:45:50 +01:00
thenecromancer
d32e0878c7 Remove Battle Shout/Blessing of Might hack
Add table holding stacking masks for non-target/caster related stacking rules
Aura bounce check is still to be done

--HG--
branch : trunk
2010-01-23 17:05:20 +01:00
Anubisss
d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
Xanadu
9e91fc997c Fix build.
--HG--
branch : trunk
2010-01-21 01:28:18 +01:00
Brian
da263cd1c4 * Restore Dalaran no fly zone lost in last commit
--HG--
branch : trunk
2010-01-20 15:04:47 -07:00
Brian
c82599ebb9 * Wintergrasp removal -- part 4: "How deep does the cancer run?"
--HG--
branch : trunk
2010-01-20 14:23:47 -07:00
thenecromancer
721c926229 Change GetSpellSpecific() to have SpellEntry argument instead of ID, this saves lookups in spellstore for entries we already have.
--HG--
branch : trunk
2010-01-20 20:54:32 +01:00
Rat
0cc053ea4d *Integrate Script system to Core
-added ScriptMgr for loading scripts
-removed bindings
-moved script system to src/game
-moved scripts to src/scripts
-VC project files updated
-cmakes updated (not 100% done yet)

NOTE to Devs:
-file locations changed
-precompiled renamed to ScriptedPch
-ecsort_ai renamed to ScriptedEscortAI
-follower_ai renamed to ScriptedFollowerAI
-guard_ai renamed to ScriptedGuardAI
-simple_ai renamed to ScriptedSimpleAI
-sc_creature renamed to ScriptedCreature
-sc_gossip renamed to ScriptedGossip
-sc_instance  renamed to ScriptedInstance

*use the new headers in scripts, thank you

NOTE to ALL:
cmake not fully tested, please report any errors with it
could make creashes, incompability
USE AT YOUR OWN RISK before further tests!!

--HG--
branch : trunk
2010-01-19 11:36:05 +01:00
QAston
f03a2a60e7 *Use std::map instead of UNORDERED_MAP for storing aura applications of an aura.
--HG--
branch : trunk
2010-01-18 20:15:23 +01:00
QAston
9a7746c9fc *Add some debug info to trac reason of assertion fail in Unit destructor.
--HG--
branch : trunk
2010-01-18 18:42:36 +01:00
_manuel_
844c09fc61 Corrected issues with stacks, thanks to QAston.
--HG--
branch : trunk
2010-01-18 14:09:13 -03:00
_manuel_
054db2fa5c Blessing of Might and Battle Shout can't be at the same time, fixed by naitsabes.s and me. Thanks to QAston and thenecromancer.
--HG--
branch : trunk
2010-01-17 01:53:28 -03:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
XTZGZoReX
5a9ef604e2 * Fix CRLF.
--HG--
branch : trunk
2010-01-13 18:22:31 +01:00
thenecromancer
4b0d412e42 Some more casting requirements
*Not allow cast on invisible/stealth target if not detected
*Not allow banish/cyclone tapped unit
*Not allow pickpocket players and units that can never be pickpocketed
*Not allow disarm unarmed units

--HG--
branch : trunk
2010-01-13 11:45:54 +01:00
_manuel_
a7c23494c3 Fixed spell 44401 (Missile Barrage). Thanks to QAston.
--HG--
branch : trunk
2010-01-11 20:44:13 -03:00
Astellar
f41e837143 Addition to previous commit.
--HG--
branch : trunk
2010-01-10 22:42:41 +03:00
Astellar
40f70a8594 Fixed quest Catch and Release, some fixes for Tag Murloc spell.
--HG--
branch : trunk
2010-01-10 22:37:31 +03:00
Rat
5b6079ea67 *cleaned up SharedDefines
--HG--
branch : trunk
2010-01-10 16:27:47 +01:00
Rat
903f975dc8 *fix spell: Tag Murloc (30877)
--HG--
branch : trunk
2010-01-10 15:29:04 +01:00
QAston
f9c4030f59 *Implement attribute SPELL_ATTR_NEGATIVE_1
*Remove unneeded hacks from SpellMgr::_isPositiveSpell
*Missing ! in prev commit.

--HG--
branch : trunk
2010-01-10 13:48:57 +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
_manuel_
d4228470e4 Fixed typo by Corfiik. Now talent Tidal Waves should work.
--HG--
branch : trunk
2010-01-08 13:12:49 -03:00
Spp
7fff2a72a1 Fix Essence of Wintergrasp apply conditions removed in 3.2.2 upgrade
--HG--
branch : trunk
2010-01-07 07:36:49 +01:00
p0wer
17e4fbd4ad Make the core boot alot cleaner. Fix some formating. Make custom attributes for spells show a bar and how much they are loading.
Overall fix 99% of display issues while core is booting.

--HG--
branch : trunk
2010-01-01 14:19:29 -06:00
XTZGZoReX
2159602f27 * Remove useless CheckDB functionality. This does not belong in core in any shape or form.
--HG--
branch : trunk
2009-12-29 18:25:21 +01:00
p0wer
744c514b89 Fix Tidal Waves proc amount. After casting (Lesser) Healing Wave twice the buff will be removed.
--HG--
branch : trunk
2009-12-28 21:09:16 -06:00
n0n4m3
a5110c3382 Fixed spell Ebon Plague, byThemris.
--HG--
branch : trunk
2009-12-26 14:05:55 +01:00
Brian
eee8e179a1 * Commented useless debug output for spell_script_target and
* spell_target_position. If someone REALLY wants to see which ones are
* missing, they can uncomment them for a debug compile.
* Can finally start the core in debug mode and get useful data...

--HG--
branch : trunk
2009-12-21 16:28:57 -07:00
Brian
6b9d05c315 * Commented out a useless debug line for spell chain data since it is read
* from DBC and can't be fixed with the current way the core handles
* spell chains

--HG--
branch : trunk
2009-12-21 14:32:07 -07:00
n0n4m3
9f40c92fb4 Restore patch: No Fly Zone using Spell
--HG--
branch : trunk
2009-12-20 18:02:57 +01:00
n0n4m3
772cf54fb5 Update Spell code for 322a. Part 2
--HG--
branch : trunk
2009-12-17 12:23:01 +01:00
spp
5647f54e0f Fly aura removal by No Fly Zone spell when it finish, not when it's unapplied. Closes #633
--HG--
branch : trunk
2009-12-04 03:43:22 +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