Commit Graph
127 Commits
Author SHA1 Message Date
QAston b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Machiavelli dae2a088fd Core/Entities: After some research redefine MOVEMENTFLAG_MASK_MOVING and make it entirely mutually exclusive with MOVEMENTFLAG_ROOT - fixes the last of the related client freezes. 2011-07-19 20:37:17 +02:00
Shauren 1e3c23a4e8 Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target 2011-07-15 12:33:03 +02:00
QAston 72ea9c9fa8 Core/Spells: Add a base for brand new proc system, this is a WIP and doesn't affect currently working code. 2011-07-10 13:13:02 +02:00
Shauren d12194a006 Core/Units: Removed unused vehicle check 2011-07-08 18:16:28 +02:00
kaelima 622fa86026 Core/Spells: Allow death knights to mount while under the effect of Lichborne.
Closes #878
2011-07-08 08:19:50 +02:00
QAston 2bf3bc334c Core/Spells: define spell attributes: SPELL_ATTR1_MELEE_COMBAT_SPELL, SPELL_ATTR1_FARSIGHT, SPELL_ATTR1_DONT_DISPLAY_IN_AURA_BAR 2011-07-05 15:40:17 +02:00
Nay d6782fa826 Core/Misc: Refactor SendPlaySpellVisual and SendPlaySpellImpact and move them to Unit (from Spell) 2011-07-04 14:46:48 +01:00
QAston 348adaf791 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-06-28 16:18:42 +02:00
QAston 11c3c80732 Core/Spells: Add SMSG_PROCRESIST packet handler. 2011-06-28 16:17:49 +02:00
Machiavelli e2f49f63bc Core/Entities: Instead of clearing all unit movementflags on SetRoot and SetStunned, only remove ones that are confirmed to be conflicting with MOVEMENTFLAG_ROOT. Fixes vehicle passenger visuals.
Closes #2141
2011-06-27 21:25:00 +02:00
QAston 3137a82c7c Core/Spells: Cleanup in Spell.h:
- Codestyle (fix function naming) and cleanup changes in SpellCastTargets class, also access variables of this class by getters/setters
 - Move IsQuestTameSpell function to SpellMgr.h
 - Move UnitList typedef to Unit.h
Additionally - add missing copyright notice to SpellAuraEffects.h
2011-06-23 13:28:52 +02:00
QAston c4818f1892 Core/Auras: Fix refresh of auras with spellmodifiers applied to currently cast spell. 2011-06-21 19:59:17 +02:00
tobmaps 2f2396b7e0 Core/Arenas: Remove both positive and negative auras only at arena join
Closes #2000
2011-06-16 00:20:20 +07:00
click c77aa6e846 Core: And some more cleanups... 2011-06-12 02:00:43 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren ce8977d1ce Added missed changes for previous revision 2011-06-11 13:08:23 +02:00
Shauren 9b79df7074 Core/Spells: Implemented SPELL_ATTR7_IS_CHEAT_SPELL serverside checks and allow GMs to cast these spells 2011-06-11 13:02:54 +02:00
Shauren 97a5db68c2 Core/Auras:
* Fixed loading aura charges when they would exceed count set in SpellEntry while still remaining a valid value due to spell modifiers (that might not yet be active)
* Fixed refreshing aura charges when recasting the spell

Closes #1803
Closes #1786
Closes #1805
2011-06-03 21:30:50 +02:00
Shauren 27246db7d5 Core/Auras: Replaced false with NULL since we are dealing with pointers 2011-05-29 14:01:20 +02:00
QAston 42a20f14ef Core/Auras: Use existing aura object on aura reapply/stack increase instead of creating a new one.
You can hook on reapply/stack event by checking for AURA_EFFECT_HANDLE_REAPPLY aura handler mode, AURA_EFFECT_HANDLE_REAL is now not triggered on aura refresh/stack.
2011-05-29 13:18:47 +02:00
Aokromes 6acd954bf5 Core/Misc: Some random cleanups 2011-05-25 19:54:17 +07:00
Shauren 78ea0075e1 Core/Spells: Allow overriding aura stack amount from CastCustomSpell 2011-05-21 21:36:37 +02:00
Shauren 69376d0e1c Core/Units: Removed calculating complete mechanic mask when checking if unit has aura with such mechanic, instead return result immediately (immunities don't need to be checked, unit won't have such aura if immune) 2011-05-19 17:46:36 +02:00
tobmaps a8c784b50c Core/Spells: Properly fix talent Torment the Weak 2011-05-19 22:01:01 +07:00
Shauren 753718a7b0 Core/Units: Added method to check if health after heal will exceed given percentage 2011-05-16 13:23:00 +02:00
boom fcc83fba98 Core/Spells: Allow stealthed units to mount up
Closes #89
2011-05-13 22:19:18 +07:00
tobmaps 2c86e193f3 Core/Spells: Fix talent Blessed Recovery 2011-05-12 01:34:58 +07:00
Shauren 572e8f26da Core/Spells: Fixed deaths at stat auras removal when at low health (less than 1 percent) 2011-05-11 12:08:08 +02:00
johnholiver 99959e8cd7 Core/Spells: Lifebloom final bloom.
Each dispelled stack will count towards the final bloom.
I left spell_bonus_data stuff out following Shauren's comment.
2011-05-05 19:16:13 -03:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Shauren 8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
Shauren 8dbdc15705 Core/Units: Made RemoveAllAurasExceptVehicle more generic, can now be used to remove all auras except specified type 2011-04-23 10:24:44 +02:00
Shauren d73ffc9e81 Core/Vehicles:
* Added generic solution for vehicle accessories not relying on AI calls
* Only accessories marked as minion will be respawned when the vehicle enters evade mode
* Notify the summoner's AI when vehicle accessory fails to install and despawns
2011-04-22 21:59:37 +02:00
Shauren cb3e6dbce3 Core/Spells: Fixed players getting stuck in shapeshift forms after too quick shifting 2011-04-21 21:13:47 +02:00
pek2011 337b75cafc Core/Cleanup: Drop some unused code and update some unknown player flags (from Mangos).
Closes #1167
2011-04-07 15:10:10 +03:00
Shocker ba80f2fbdc Core/Spells: Fix area target search for spells with SPELL_ATTR2_ALLOW_DEAD_TARGET 2011-04-06 17:00:05 +03:00
Shauren 2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren 4b4d3e7450 Core/Creatures: Implemented UNIT_FLAG_PASSIVE 2011-03-06 12:22:04 +01:00
Machiavelli 6c4a0354a2 Core/ObjectMgr: Move some npc_spellclick_spells and vehicle_accessory related errors to startup instead of post-startup runtime 2011-03-06 11:12:19 +01:00
Machiavelli a9582964d3 Core/Vehicles: Make the vehicle system more aura driven. Get rid of redundant checks and update relevant data.
Closes #805
2011-03-04 21:17:06 +01:00
Machiavelli 683cea9e83 Core/Vehicles:
- Grab correct npc entry from npc_spellclick_spells in case of player vehicle. Fixes DB errors added in my previous changeset
- Allow aura's with SPELL_AURA_CONTROL_VEHICLE to stack if there are enough free seats, even if spellIds are identical.
- Fix a possible infinite loop. Thanks to manuel for spotting
2011-02-27 03:58:41 +01:00
Machiavelli 3ac80ee3a4 Core/Vehicles: Correct usage of npc_spellclick_spells instead of blatant hacks for vehicle entry.
Note: This may break a few vehicles, but only due to the absence of proper, non-hackish data.
2011-02-26 23:00:09 +01:00
Machiavelli 30738e645f Core/Vehicles&Movement:
- Send correct SMSG_MONSTER_MOVE with newly discovered SPLINEFLAG_EXIT_VEHICLE on vehicle exit. Fixes the "stuck on exit" bug as a result of removing the previous hack in 04b656a44f.
- Use SMSG_SPLINE_MOVE_ROOT and SMSG_SPLINE_MOVE_UNROOT as root packets for creatures.
- Reimplement toggling of MOVEMENTFLAG_ROOT on root event (including enter vehicle)
- Speedup in fetching movementflags for vehicles depending on vehicleflags on object updates.
- Code cleanup and refactoring
2011-02-26 03:47:23 +01:00
Machiavelli 04b656a44f Core/Vehicles:
- Allow specifying of exit position for Unit::ExitVehicle
- On Vehicle::InstallAccessory, despawn any accessory in the current seat with the same entry with TEMPSUMMON_MANUAL_DESPAWN type
- Remove hacky TELEPORT_ACK packet on vehicle exit
- Remove some redundant packet send operations that were already handled elsewhere
2011-02-25 01:38:21 +01:00
darkstalker 1646f9d91c Core/Spell Mechanics: introduce global cooldown manager for server-side checks for GCD (ported from mangos) 2011-02-22 17:02:47 +06:00
Shauren 7ac891717c Core/Vehicles: Send proper GUID in SMSG_BREAK_TARGET packet when an unit enters vehicle 2011-02-19 22:50:09 +01:00
Machiavelli c0b29fd0ad Core/Vehicles: Chart VEHICLE_SEAT_FLAG_UNCONTROLLED and implement usage. Concerns vehicleseat enter/exit capabilities. Fixes vehicles related to Malygos encounter.
Original research by rsa, thanks to Manuel for pointing out.
2011-02-19 21:58:50 +01:00
Manuel Carrasco 6b2ffc9039 Core/GuardAI: Guards don't evade if the target casts Vanish and also can detect players with Feign Death.
Core/Scripts: Moved scripts from ScriptedGuardAI to guards.cpp
Core/Creature: Removed custom npcflags UNIT_NPC_FLAG_GUARD (now moved to flag_extras) and UNIT_NPC_FLAG_OUTDOORPVP (not used)

Thanks to Kaelima, Xanadu, Shauren and linencloth.

Signed-off-by: Manuel Carrasco <[email protected]>
2011-02-10 22:36:35 -03:00
QAston f862db8b92 Core/Unit: Move code using polymorphism out of CharmInfo destructor - fixes issues introduced with 38ea569525. 2011-02-04 02:51:12 +01:00