Commit Graph

443 Commits

Author SHA1 Message Date
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
Kudlaty
223d7d8116 Apply #456
Removed Essence of Wintergrasp from OutdoorPvP and implementation using the spell system.
This will affect Wintergrasp and all Northrend zones, dungeons and raids.
Note: need database support.
Patch by Spp

--HG--
branch : trunk
2009-11-27 03:16:49 +01:00
maximius
654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
maximius
7ad284bd33 *Some cleanup.
--HG--
branch : trunk
2009-11-19 03:53:49 -08:00
maximius
963a6c14f1 *Cleansing Totem Pulse at cast, thanks lobuz
--HG--
branch : trunk
2009-11-17 20:09:01 -08:00
maximius
ce0f37bed3 *Correct Divine Storm heal, thanks lobuz
--HG--
branch : trunk
2009-11-17 19:28:36 -08:00
Anubisss
3e14909be5 *Ovverride value of Heroism's excludeCasterAuraSpell, because DBC has crap(0) value(interesting that Bloodlust has correct value).
*This fix the bug that Heroism doesn't cast Exhaustion to the target.

--HG--
branch : trunk
2009-10-22 20:35:32 +02:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
ad8aed5c0c *Allow Wintergrasp Spirit Healers to cast their spell, by manuel
--HG--
branch : trunk
2009-10-16 13:01:36 -07:00
maximius
b4c7a2514d *Blackfathom Deeps - Event: Aku'mai, by Tartalo
*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-09 20:48:55 -07:00
maximius
36a2633f5d *[Fix] fly in Northend without Cold Weather Flying if summoned, by Spp
--HG--
branch : trunk
2009-09-23 00:45:47 -07:00
root@trinity
b07aba2513 * Changed the logging for missing spell_script_target / spell_script_position
* entries in DB to "debug" level.
* Set the default level for DBLogLevel in trinitycore.conf.dist to 2 "detail"

--HG--
branch : trunk
2009-09-16 13:16:42 -06:00
maximius
cd1a9a98c4 * [8456] Implement area check for SPELL_ATTR_EX6_NOT_IN_RAID_INSTANCE Author: VladimirMangos
--HG--
branch : trunk
2009-09-11 12:57:21 -07:00
maximius
960099efdb *Add back Themris' cleansing totem patch, accidentally removed in r4816
--HG--
branch : trunk
2009-09-10 09:25:32 -07:00
megamage
596d1714d4 *Fix a bug that druid's flight form is not removed after entering wintergrasp.
--HG--
branch : trunk
2009-09-04 09:36:38 -05:00