Commit Graph
90 Commits
Author SHA1 Message Date
Machiavelli 0ecb47bc8a Core/Spells & Vehicles: Define and implement SPELL_ATTR6_CASTABLE_WHILE_ON_VEHICLE and VEHICLE_SEAT_FLAG_CAN_CAST_MOUNT_SPELL.
Research done by QAston
2011-07-30 20:36:19 +02:00
QAston 495ead5f7f Revert "Core/Spells: Fix a crash on checking school immunity added to unit manually (not by aura)"
This reverts commit 07badd7385.
2011-07-28 23:44:39 +02:00
QAston 07badd7385 Core/Spells: Fix a crash on checking school immunity added to unit manually (not by aura) 2011-07-28 23:41:29 +02:00
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
Shauren 74e2d981ac Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair 2011-07-22 21:22:05 +02:00
tobmaps a3feb40eb6 Core/Spells: Define and implement SPELL_ATTR6_NO_DONE_PCT_DAMAGE_MODS; revert SPELL_ATTR4_FIXED_DAMAGE
Closes #1307
Closes #2270
2011-07-22 23:30:23 +07:00
QAston b9413f08b3 Core/Spells: Define and implement attributes SPELL_ATTR1_CANT_BE_REDIRECTED and SPELL_ATTR1_CANT_BE_REFLECTED, fixes some problems with Grounding Totem and Spell Reflection. 2011-07-13 20:14:55 +02:00
QAston 20e8c25b48 Core/Spells: Define and implement attribute SPELL_ATTR3_CANT_TRIGGER_PROC, change names of some attributes to better describe their functionality. 2011-07-13 17:18:04 +02:00
QAston 1c7616dcc8 Core/Spells: Define and implement SPELL_ATTR3_IGNORE_RESURRECTION_TIMER - now you can instantly resurrect with Rebirth spell. 2011-07-12 10:43:58 +02:00
QAston cd1df639b2 Core/Spells: Define and implement SPELL_ATTR2_CANT_TARGET_TAPPED attribute. 2011-07-12 07:34:42 +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
QAston 5b79175b7a Core/Spells: More spell attribute definitions. 2011-07-03 10:03:13 +02:00
QAston 29a7535638 Core/Spells: Define 2 more spell attributes: SPELL_ATTR6_CAN_TARGET_POSSESSED_FRIENDS and SPELL_ATTR6_CAN_TARGET_UNTARGETABLE 2011-07-02 17:06:19 +02:00
QAston 86dde83dda Core/Spells: Define many unknown SpellCastTargetFlags enum values, rename some target type enum values to follow standards, also correctly implement TARGET_UNIT_TARGET_PASSENGER. 2011-07-02 16:12:19 +02:00
QAston ce75ced741 Core/Spells: define SPELL_ATTR1_CHANNEL_DISPLAY_SPELL_NAME(0x20000000) 2011-07-01 13:12:19 +02:00
QAston 3b8dce669d Core/Spells: Define attributes: SPELL_ATTR0_CAST_TRACK_TARGET(0x00400000), SPELL_ATTR1_CHANNEL_TRACK_TARGET(0x00004000), SPELL_ATTR0_ON_NEXT_SWING_2(0x00000400), add some attribute flag comments based on client research. 2011-07-01 12:47:26 +02:00
QAston d3e887060d Fix build. 2011-06-30 02:17:07 +02:00
QAston fb9719c653 Core/Spells: Define SPELL_ATTR0_ABILITY (old SPELL_ATTR0_UNK4) 2011-06-30 01:47:09 +02:00
QAston e79d46e499 Core/Spells: Correctly define TARGET_UNIT_NEARBY_PARTY(3) and TARGET_UNIT_NEARBY_ALLY(4) target types. 2011-06-30 00:49:10 +02:00
QAston 2bcf63d387 Core/Spells: don't allow spells which hit target only with SPELL_EFFECT_DUMMY to execute spell triggers on that targets, also cleanup related code a bit. 2011-06-26 00:29:12 +02:00
kaelima 6f361be1ba Core/Spell: Correctly reordered diminishing groups for sharing diminishing timers between spells.
- Fixes several spells witch were in wrong group.
- Charge and scatter shot now has their own group.
- Moved Noblegarden Bunny costumes to negative effect.

Thanks Shocker for testing. Data comes from Elitist Jerks, Arena Junkies and a few addons tracking diminishing timers.
2011-06-17 22:35:05 +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
QAston 38de636e30 Core/Spells: Define some unknown spell attributes. 2011-06-11 10:55:17 +02:00
kaelima a7a1a123ec Core/Defines: filled some gaps from 31abc9e20c 2011-06-08 13:53:14 +02:00
kaelima 31abc9e20c Core/Defines: Revert parts of ae0d349a3c.
Seems like the list in lua files doesn't match what the client actually sends.

Closes #1895 #1894
2011-06-08 12:09:26 +02:00
Shauren 009aff2cc9 Core/Spells: Fixed targeting selection for target type 90 (TARGET_UNIT_TARGET_MINIPET)
Closes #1776
2011-06-04 12:13:27 +02:00
Shocker 38b07319fe Core/Events: Add missing definition for Kalu'ak Fishing Derby 2011-06-01 15:05:56 +03:00
kaelima ae0d349a3c Core/Defines: Update enum TextEmotes, values and names from client. (These emotes comes in CMSG_TEXT_EMOTE). 2011-05-30 22:57:37 +02:00
Shauren 5256b5abfe Core/Defines: Added missing custom errors to spell cast results, thanks Kaelima 2011-05-30 22:12:17 +02:00
SeTM fade2383cc Core/Spells: Implemented SPELL_ATTR5_HIDE_DURATION. Duration of auras with this attribute will not be displayed clientside 2011-05-28 21:53:32 +07:00
Shauren bafa57618c Core/Spells: Documented 2 spell attributes 2011-05-26 22:11:44 +02:00
Shauren 5f5af1e95d Core/Spells: Implemented SPELL_ATTR3_IGNORE_HIT_RESULT. Spells with this attribute will only be subject to own spell modifiers, ignoring enemy avoidance auras such as Cloak of Shadows or Deterrence 2011-05-25 18:31:10 +02:00
Ramusik def928a3bd Core/Spells: Rename some spell attributes to reflect their true meaning 2011-05-17 02:34:39 +07:00
tobmaps cb6fca4646 Core/Spells: Implement SPELL_ATTR5_HASTE_AFFECT_DURATION. Haste rating should decrease duration of these auras
Closes #1020
2011-05-12 18:59:49 +07:00
tobmaps 8ecde2f96b Core/Spells: rename MECHANIC_PACIFY to MECHANIC_SLOW_ATTACK and fix a bug with Frost Fever removing by PvP trinket
Closes #457 & #836 & #1195
2011-05-11 23:20:15 +07:00
tobmaps ce7f024945 Core/Spells: Implement SPELL_ATTR4_DAMAGE_DOESNT_BREAK_AURAS. Damage from spells with this attribute flag shouldn't break breakable by damage auras 2011-05-11 01:46:13 +07:00
tobmaps f3a12453a0 Core/Spells: added more spell attributes to enum 2011-05-10 18:00:13 +07:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak e2e9431ca3 Core/ObjectMgr: Refactor sGOStorage 2011-04-28 22:54:30 +02:00
Shauren aa91187e97 Core/Spells: Cast proper vehicle spells on vehicle summon 2011-04-24 10:22:58 +02:00
Shauren 542bc3008d Core/Player: Fixed interaction rules with dead creatures 2011-04-18 12:17:45 +02:00
Shauren 0d477ab132 Core/Creatures: Dismount creatures without CREATURE_TYPEFLAGS_MOUNTED_COMBAT when entering combat 2011-04-18 11:43:50 +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
Shauren 7d49d37e6e Core/Battlegrounds: Fixed displaying Call to Arms for Isle of Conquest and Strand of the Ancients 2011-03-20 21:49:15 +01:00
VladimirMangos 3384dc3a24 Core/Misc: Drop unused define GAMEOBJECT_FISHINGNODE_ENTRY 2011-03-18 07:01:51 -06:00
Shauren 36f848a4c2 Scripts/Icecrown Citadel: Only one Mutated Abomination can exist during Professor Putricide encounter
Scripts/Spells: Added blizzlike error messages for certain spells
Scripts/Items: Removed obsolete scripts
2011-03-04 23:53:11 +01:00
Shauren 7120f1eff8 Core/Spells:
* Implemented on CheckCast spell script hook
* Added possibility to send SPELL_FAILED_CUSTOM_ERROR and added enum with all possible options for it

Scripts/Spells:
* Added example script for CheckCast hook with SPELL_FAILED_CUSTOM_ERROR (profession research and Book of Glyph Mastery)
2011-03-04 21:19:43 +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 38816cb1df Core/Spells: Implement SPELL_ATTR6_IGNORE_CROWD_CONTROL_TARGETS (0x00000100). Spells with this attribute flag (Avenger's Shield, Hammer of Righteousness, Shield of Righteousness, Felguard Cleave, Fel Iron Bomb) will ignore secondary targets that are under the effect of crowd control aura's.
Thanks to Shauren for advices.
2011-01-15 19:40:06 +01:00
Machiavelli 957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00