Commit Graph

221 Commits

Author SHA1 Message Date
Machiavelli
1eb5bf1a65 Scripts/Ulduar/Flame Leviathan: Make both dummy effects apply on the same target, and boost range of spell Pursue to 50000yds to prevent boss reseting during the encounter. 2011-10-07 13:47:03 +02:00
Shauren
fc9926a97e Scripts/Icecrown Citadel
* Properly remove glow aura during outro from Tirion
* Improved Wicked Spirit behaviour & visibility on heroic mode
* Removed gossip npcflag from Tirion after LK death
2011-10-06 17:57:28 +02:00
Shauren
4eaa4ce401 Scripts/Icecrown Citadel: Fury of Frostmourne debuff will now be removed correctly 2011-10-06 14:30:33 +02:00
Shauren
2ff1c28c4c Scripts/Icecrown Citadel
* The Lich King
2011-10-05 20:48:34 +02:00
Spp
b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Shauren
7040ef5877 Scripts/Icecrown Citadel: Mark of the Fallen Champion will ignore armor now 2011-09-27 21:44:29 +02:00
Chaplain
5bbd8dcf33 Core/Spell: Hymn of Hope fix.
*fixed mess with temporary increase max/current power (percent).
*thx Shocker for advice
2011-09-26 20:12:25 +03:00
Shauren
062e645637 Scripts/Spells: Bloodlust/Heroism handling changed, it is now possible to use these spells even if caster is under Sated/Exhaustion debuff 2011-09-25 15:08:48 +02:00
QAston
e949ad3adb Core/Spells: spell effect handling improvements
* Call spell effect handlers in 4 modes:
   - SPELL_EFFECT_HANDLE_LAUNCH - called when spell is launched (cast just finished)
   - SPELL_EFFECT_HANDLE_LAUNCH_TARGET - called when spell is launched for each target in spell target map
   - SPELL_EFFECT_HANDLE_HIT - called when spell hits its destination
   - SPELL_EFFECT_HANDLE_HIT_TARGET - called when spell hits it's target from spell target map
*Correctly implement SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL
*Remove spell system hacks which became obsolete with this commit
Core/SpellScripts:
add OnEffectLaunch, OnEffectLaunchTarget, OnEffectHit, OnEffectHitTarget hooks for new effect handle modes and remove OnEffect hook.
A generic rule of thumb how to update your scripts (will work for nearly all cases) for spell system noobs:
if your spell script used GetHitXXXX function, you need to use OnEffectHitTarget, otherwise use
OnEffectHit
2011-09-25 13:29:50 +02:00
Shauren
c93c27d056 Scripts/Icecrown Citadel:
* Mark of the Fallen Champion should be a debuff
* Fixed periodic damage taken from Twisted Nightmare on heroic difficulties of Valithria Dreamwalker encounter
2011-09-16 11:29:35 +02:00
Nay
791acfebac Core/Spells&GOs: Fix Ritual of Doom.
Thanks QAston and Shocker for helping.
Closes #2535
2011-09-15 17:52:35 +01:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Spp-
33ce07bdde Core: Minor cleanups (here and there)
- Fix warning
- Fix some typos
- Correct upper 'for' limit in LoadSkillLineAbilityMap
- Remove use of magic number in a query related to security levels
2011-09-13 14:15:35 +02:00
Lopin
d5cbc97373 Core/Spells: Changed targets of Lifebinder's Gift (search for entry instead of area ally). For conditions thanks Anubisss 2011-09-08 13:50:01 +02:00
Nay
dc123820ad Core/Spells: Correct a DBC mistake in Improved Stings (R2) 2011-09-06 18:12:09 +01:00
hacknowledge
9d85446e30 Core/Spells: Fixed misdirection ability of hunters to end 4 seconds after first damage proc - fixes #114 2011-09-03 18:26:39 +02:00
QAston
f31e676199 Fix build after recent pull merges. 2011-09-03 18:07:27 +02:00
sarjuuk
b40bf69319 [Core/Threat] SpellThreat-Calculation revamped
short:
  - Threat is now distributed blizzlike (almost)

long:
  - Percent- and AP-Modifieres got add
  - Threat is now propperly distributed through multiple enemies
  - Most spells will cause initial threat in an amount equal to their SpellLevel
  - Energize-Effects will now be treated like healing (threat-wise)
  - Tanks got their missing +43% passive threat tacked on
  - Paladins are still missing 'Salvation' and will not only cause half threat with healing (essentially 25% of the amount healed)
2011-09-03 17:42:44 +02:00
Nay
83912c43ad Core/Spells: Revert a (little) part of 85164d2876
DB: Fix startup errors Closes #2568
2011-08-26 18:04:35 +01:00
Spp-
e41774750f Core/Spell: Partial revert of 85164d2 (Move icc spell back to original line to keep icc spells grouped) 2011-08-26 10:29:23 +02:00
Spp-
85164d2876 Core: Some cosmetic changes and minor optimizations 2011-08-26 09:41:33 +02:00
Spp
f997f9d3c4 Core/Spells: Fixed typo in Parasitic Shadowfiend Passive 2011-08-25 10:21:19 +02:00
QAston
7f30ac5a95 Core/Spells: Add a generic way of selecting spell explicit targets. Make explicit targets independant of calling convention in core - this makes targets sent to client to be much more blizzlike than before (for example CastSpell(Unit*) won't set TARGET_FLAG_UNIT for spells which are not using explicit unit target) for SMSG_SPELL_START packets. Also remove hacks, which became obsolete with this commit. 2011-08-24 08:08:33 +02:00
QAston
5819cb084f Merge pull request #2715 from elecyb/diminish
Core/Spells: Fix duration of some spells in PvP
2011-08-23 21:01:35 -07:00
Shauren
7cea5a1f5b Core/SpellMgr: Corrected indentation in SpellMgr::LoadDbcDataCorrections 2011-08-21 15:01:40 +02:00
elecyb
60568f67af Fix diminishing for spells with group DIMINISHING_LIMITONLY, partially reverts b0fe236265 2011-08-19 13:33:53 -03: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