Commit Graph

243 Commits

Author SHA1 Message Date
Souler
75992143c1 Scripts/Spells: Fix Argent Tournament mount spells:
* Break-Shield
 * Charge
 * Defend (visual)
 * Mounted duel
 * Faction Pennants when riding argent tournament mounts
Closes #4917.
2012-01-30 00:21:42 +01:00
Emo Norfik
6cb4950489 Scripts/Utgarde Pinnacle:
- Re-write Svala Sorrowgrave
- Scripted achievement The Incredible Hulk.

This script was writen basing on work and data:
- Original TC script.
- Albis fix for Arthas sounds and texts https://github.com/TrinityCore/TrinityCore/issues/4002 .
- Ric event start fix.
- Recorded encounters uploaded on YouTube.
- Data found on ScriptDev2 forums.
- Iov's custom SD2 repo and Svalas's script https://github.com/Iov/scriptdev2 .
Also thx to:
- ZxBiohazardZx for pointing how to fix looting problem when boss is killed when flying.
- Aokromes for confirmig how many times event "Ritual of the Sword" is performed.

- Mini event with Arthas.
- Call Flames: timers of cast and time between "Ball of Flame" (48246) can be wrong (based on videos).
- Ritual of the Sword works  and is performed once at 50% hp but:
  a) Still need retail data for teleport position of Svala floating above player.
  b) Need fully fixed spell Ritual of the Sword (48276), the triggering of spell Ritual Strike - Trigger Missile (48331) part was hardcoded.
- Spell Paralyze (48278) used by Ritual Channeler: fixed stacking and selection to ritual player only.
- Achievement "The Incredible Hulk": works but often Scourge Hulk don't get initial dmg from spell Ritual Strike (spell 48277 Effect #1 Value: 6650 to 7350).
- Looting problems when Svala was killed in air (require vmaps and option "vmap.enableHeight = 1" enabled in "worldserver.conf").
- Moved script_texts to creature_text.

It require option "vmap.enableHeight = 1" to work properly.
2012-01-08 23:07:31 +00:00
Souler
2d8a6fdf15 Scripts/Quests: An Apexis Relic, The Relic's Emanation and Guardian of the Monument. 2012-01-06 01:19:07 +01:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
Nay
0d98ecc6c1 Merge pull request #4463 from Warpten/stings
Core/Spells: Fixed Improved Stings Rank 2 Dispel resist chance
2011-12-24 15:09:52 -08:00
Kapoeira
c89c007f9f Core/Spells: Fixed Improved Stings Rank 2 Dispel resist chance (crazy targeting typo) 2011-12-23 19:49:59 -05:00
nelegalno
133c3304d8 DB/Quest: Fix quest The Black Knight's Orders
Closes #1832
Closes #3206
Closes #1299
Closes #1700
Closes #4347
2011-12-18 23:44:15 +00:00
Shocker
f43e8a937f Core/Spells: Typo fix in recent commit 2011-12-05 23:11:53 +02:00
Shauren
0cc62432e8 Merge pull request #4196 from kandera/fix_Ravage
Core/Spells: Fix Ravage positioning requirement
2011-12-05 10:36:00 -08:00
kandera
d6f2359e20 Core/Spells: Fix Ravage (was able to attack from any side. now only from back) 2011-12-05 10:20:06 -05:00
Svannon
9876ef723e [Spell] Make Spell 29200 (Purify Helboar Meat) use caster as casting target 2011-11-26 15:33:05 -07:00
Shocker
80f8791907 Core/Misc: Small cleanup in SpellMgr 2011-11-26 21:42:40 +02:00
Shauren
358b33239a Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit 2011-11-23 19:17:33 +01:00
kaelima
79903f31ce Core/Spells: Add own diminishing category for Dragon's Breath.
Will no longer share diminishing with Polymorph
Closes #3081
2011-11-13 00:51:33 +01:00
Bootz
d1334624da Core: Codestyle clean-up
"pl"->"player"

 Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
draco
96c63fdf90 Change magic numbers for EffectRadiusIndex into enum with actual effect radius 2011-10-27 21:30:23 +02:00
Liberate
1431a5d15c Core/Spells: Revert d7e0190726 and solve it differently.
All totems have TARGET_UNIT_CASTER as implicit target except from Wrath of Air and Flametongue.
To make Glyph of Totem of Wrath work again modified these 2 totems to be the same as the other totems.
This still makes the 2 totems not stackable.
Fixes #3293
2011-10-19 18:35:21 +02:00
Liberate
8cc13ff838 And I forgot to turn on tabs to spaces. Also fixed... 2011-10-18 23:38:55 +02:00
Liberate
89bae3b51c Core/Spells: Add a new stack rule for spellgroups: SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT
This stack rule makes the effects of the spells in the spellgroup non-stackable, but the spells/auras itself are stackable.
a spell should be in only 1 group with this stack rule.
Fixes #2243
2011-10-18 23:27:39 +02:00
megamage
0184720df6 Merge pull request #3444 from Havenard/fix0008
Fix Elemental Oath
2011-10-12 08:44:47 -07:00
Chaplain
3e9611578c Core/Spells: SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT improvement
*Now it'll correctly increase\decrease % of power
*Added helper function for modify power with percent ammount
2011-10-12 01:11:52 +03:00
Havenard
61f468d5a1 Fix Elemental Oath
Remove hacky implementation of Elemental Oath
Properly fix it by correcting DBC data
Fix Clearcasting from Elemental Oath damage bonus being displayed twice in Spell ToolTips by damage Addons like DrDamage (displaying 10.25% instead of 5%, 21% instead of 10%)
2011-10-10 18:01:02 -03:00
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