Commit Graph
196 Commits
Author SHA1 Message Date
Shauren 7cea5a1f5b Core/SpellMgr: Corrected indentation in SpellMgr::LoadDbcDataCorrections 2011-08-21 15:01:40 +02:00
QAston fc5e924138 Core/Spells: Implement recently discovered target check attributes and move most of target checks to SpellInfo::CheckTarget function. 2011-08-19 14:54:15 +02:00
QAston a077a26aa5 Core/Spells: update the core to the changes from 1fb1988d46 . To make your custom code work with those changes simply lookup the value of Targets enum value from prev rev, and update the name in your code. 2011-08-16 19:44:18 +02:00
Shauren f4f16aea28 Core/Spells: Fixed radius of Mutated Plague (Professor Putricide encounter)
Closes #2521
2011-08-07 16:48:39 +02:00
Spp 1c882084f3 Core: Cosmetic changes in Threat related code (per request) and remove of extra call to SpellMgr singleton inside that singleton 2011-08-04 13:16:09 +02:00
Spp e7327e7e94 Core: Fix compile without PCH and fix some warnings 2011-08-03 11:23:08 +02:00
Spp- fcdd4d784f Core/Transport: Minor optimization in LoadTransports (And some cosmetic changes here and there in other files) 2011-08-03 08:18:24 +02:00
Shauren f899c92899 Core/Spells: Use ModStackAmount for CastCustomSpell with aura stack value if the aura is refreshed on target 2011-08-01 12:05:30 +02:00
Machiavelli 6732cbbde5 Core/Spells: Fix Shaman Wind Shear (Threat reduction part)
Closes #860
2011-07-31 23:49:29 +02:00
Shauren b9a6e2333c Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash 2011-07-27 12:35:59 +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
tobmaps 17c3ac6b07 Core/Spells: Garrote and Ambush should be usable only behind the target 2011-07-24 23:49:15 +07:00
Shauren 6b1a7497dc Scripts/Icecrown Citadel: Fixed Precious' Plagued Zombies duration
Closes #2365
2011-07-22 19:05:46 +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
tobmaps f50892fa77 Core/Misc: Small code style fix 2011-07-22 20:46:19 +07:00
tobmaps 6a89bd767f Scripts/Trial of the Crusader
* Use spells instead of scripts to handle summons used by Lord Jaraxxus
* Fix stacks for spell Nether Power used by Lord Jaraxxus
* Make some triggers invisible

Closes #829
2011-07-22 06:04:10 +07:00
tobmaps 66b217991c Core/Spells: Fix Unstable Affliction
Closes #94
Closes #1244
Closes #1528
2011-07-16 01:24:15 +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 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
QAston 3963d6eeb2 Typo in enum name, thanks Nayd for pointing this 2011-07-04 23:26:36 +02:00
QAston 0bc23239d8 Core/Spells: Remove some incorrect spell attribute checks and add custom attributes instead - it's better to know that there is no attribute for something than to pretend there's one and do ridiculous checks. 2011-07-04 23:14:20 +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 06515b27b3 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-07-01 12:48:21 +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
tobmaps 18a2d330a8 Core/Spells: Prevent abilities that are 'usable while stunned' being usable while in non-stun effects. Original idea by darkstalker 2011-06-30 08:05:03 +07: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
tobmaps c42db7af8c Core/Misc: Minor cleanup and code style fixes 2011-06-28 23:48:59 +07:00
Spp- 3bf0029208 Core/SpellMgr: Minor cleanup in code 2011-06-28 13:53:48 +02:00
kaelima 142943d4c1 This reverts commit f580cddc09. 2011-06-28 13:05:15 +02:00
click f580cddc09 Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.

NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
QAston 557e06b1c1 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-06-26 13:56:11 +02:00
QAston ac88fa026f Database/Spells: Add spell_proc table which is a replacement for spell_proc_event table. This is the initial patch from series of patches changing the way we currently handle procs in the core, and doesn't interfere with existing code in any way. 2011-06-26 13:54:44 +02:00
Shauren bcd62b8d29 Scripts/Icecrown Citadel: Valithria Dreamwalker encounter should start when she is healed and fixed achievement credit
Closes #2117
Closes #2058
2011-06-26 12:47:34 +02:00
Shauren 2b1039d0e1 Scripts/Icecrown Citadel
* Removed spellmgr hacks for Boiling Blood
* Removed obsolete effect from Resistant Skin causing them to lose the aura when hit by shadow spell
2011-06-26 11:45:29 +02:00
QAston 6dcee0c0ea Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-06-26 00:29:36 +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
elecyb 0a26e659ae Core/Spells: Removed more unneeded hacks 2011-06-25 04:30:11 +07:00
elecyb 6bda92ac15 Core/Spells: Removed unneded hack 2011-06-25 04:17:27 +07:00
elecyb 83f7363123 Core/Spells: Drop some unneeded and wrong code 2011-06-25 03:57:37 +07:00
tobmaps afd524f36b Core/Misc: Some random cleanups and code style fixes 2011-06-20 04:04:20 +07:00
elecyb 66ce66ab73 Core/Spells: Fix diminishing group for Curse of the Elements 2011-06-20 01:15:33 +07:00
Lopin 0f95cf7ffd Core/Spells: Fixed two more diminish returns - Curse of Tongues & Curse of Elements 2011-06-19 10:58:28 +02:00
elecyb 89c97b94fd Core/Spells: Judgment of Justice should be limited to 10 seconds in PvP
Closes #2036
2011-06-19 02:27:46 +07: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
Lopin 0d2c8f7a96 Core/Spells: Conservator's Grip is now marked as a debuff, Fists of Stone as a buff. Also small coding-style change around 2011-06-17 12:00:11 +02:00
tobmaps e854fd34d2 Core/Spells: effects with target mode TARGET_UNIT_AREA_PATH should be negative
Closes #434
Closes #729
Closes #1104
Closes #1840
2011-06-16 00:54:42 +07:00
Lopin 0cbd171935 Core/Spells: Fixed few spells in Auriaya's encounter (Ulduar) - Sonic Screech, Strength of the Pack, Sentinel Blast and Terrifying Screech 2011-06-12 21:10:55 +02:00
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00