Commit Graph

188 Commits

Author SHA1 Message Date
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
QAston
3ec587e21e Core/Auras:
Make Aura::ModStackAmount(1) an equivalent of reapplying the aura
    Recalculate periodic aura timers on aura reapply.
2011-06-11 10:55:17 +02:00
Pesthuf
c59dd93681 Fix spells with TARGET_DEST_CASTER_RIGHT and TARGET_DEST_CASTER_LEFT hitting the opposite direction. 2011-06-09 16:39:41 +02:00
Machiavelli
16ceb5a39e Core/Spells: Change a log message to debug level and make it more descriptive. 2011-06-07 16:23:20 +02:00
QAston
9542077c38 Core/Auras: Use recalculated aura max duration on spell hit for duration calculations. 2011-06-07 14:19:47 +02:00
QAston
3effdb2c23 Core/Auras: Add Aura::TryRefreshStackOrCreate function and remove stack checks from Aura::Create 2011-06-07 12:47:32 +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
Shauren
91b572d669 Tabs to spaces 2011-05-30 19:48:22 +02:00
Silinoron
4c1f56a2b3 Some cleanup in the first half of Spell.cpp. 2011-05-22 16:01:53 -07:00
tobmaps
4b1464dc41 Core/Spells: Fix problem with stackable spells after last commit 2011-05-22 06:12:25 +07:00
Shauren
78ea0075e1 Core/Spells: Allow overriding aura stack amount from CastCustomSpell 2011-05-21 21:36:37 +02:00
Shauren
37145b6203 Core/Spells: Fixed spell modifiers losing charges on cancelled casts
Closes #247
Closes #640
Closes #1353
2011-05-17 13:33:24 +02:00
Shauren
63f7a6d3d9 Core/Spells: Use SpellDifficulty.dbc to check casterAuraSpell, excludeCasterAuraSpell, targetAuraSpell and excludeTargetAuraSpell
Scripts/Icecrown Citadel: Fixed Mutated Abomination not being able to eat ooze on heroic mode
Scripts/Icecrown Citadel: Removed some obsolete code

Closes #523, #1447
2011-05-17 13:17:42 +02:00
vlad852
b4f3b8f95e Core/Spells: Prevent WPE exploits with spell targeting
Closes #1130
2011-05-16 01:51:58 +07:00
neuro_999
cd70ff40e2 Scripts/RazorfenKraul: Fix force field before boss Agathelos the Raging
Closes #712
2011-05-15 17:34:57 +07:00
Shauren
f7e98cd748 Fixed compile 2011-05-15 00:03:56 +02:00
tobmaps
df3ee186ec Core/Spells: Fix bug with double haste rating for channeled spells 2011-05-15 04:24:49 +07:00
Shauren
a816cdd772 Core/Spells: Fixed TARGET_UNIT_DRIVER selection and possible problems with Righteous Defense target count 2011-05-14 14:12:40 +02: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
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Azazel
6fb2bf4224 Core: use enum InventoryResult as return type for functions working with player items.
Original patch by TOM_RUS.
2011-04-29 16:48:15 +06:00
leak
a82654debd Core/ObjectMgr: Refactor sItemStorage 2011-04-28 22:42:33 +02:00
leak
5aeb4fe794 Core/ObjectMgr: Refactor sInstanceTemplate 2011-04-28 22:16:13 +02:00
Shocker
2b1f6e29a2 Core/Spells: Fix Diminishing Returns for temporary pets (Water Elemental, Feral Spirit, etc) 2011-04-20 15:33:40 +03:00
SimonDMII
e38634186c Core/Spells: fix Global Cooldown reset on spell cast interrupt. 2011-04-11 16:35:31 +06:00
Shauren
64caf2cdf2 Core/Spells: Add default handler for apply aura spell effect when both ImplicitTargets are 0, removed unused structure 2011-04-09 19:57:32 +02:00
Shauren
0ae5aca55e Core/Spells: Apply only 1.5 second cooldown to DK runes when spell misses its target 2011-04-07 23:13:35 +02: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
839680a6e9 Revert "Core/Spells: Check Line of Sight every channel spell tick"
This reverts commit 9194625466.

This is not blizzlike
2011-03-23 13:48:46 +01:00
Shauren
9194625466 Core/Spells: Check Line of Sight every channel spell tick 2011-03-22 23:56:57 +01:00
Shauren
d9c050437e Core/Spells: Fixed exploit allowing people to keep reagents when enchanting in trade
Closes #1012
2011-03-22 16:09:55 +01:00
Supabad
40d1e61566 Scripts/Ulduar: Remove known hacks from leviathan, create workaround for shutdown event.
Added missing script to db and core.
2011-03-13 13:00:09 +01:00
Shauren
3ba47e529b Core/Spells: Attempts at summoning player to an instance will result in fail if the targeted player is saved to another instance instead of summoning him at summoner's position in a different instance 2011-03-09 23:07:50 +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
Shocker
43240f8c3d Core/Spells: Correctly give skill bonus provided by spells on cast, fixes Mining/Herbalism (and similar) exploits that allowed players to mine/gather anything with any skill 2011-03-01 17:47:53 +02:00
Azazel
6a4fd1c780 Core/Spell Mechanics: remove redundant call to AddGlobalCooldown left from previous GCD checks implementation (thanks Machiavelli for spotting)
Core/Logs: fix one more log message for Aokromes
2011-02-22 23:20:21 +06: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
Machiavelli
e07e20ffca Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. 2011-02-20 20:16:34 +01:00
Azazel
4dc1eaa47c Core/Misc: improve error log messages by adding more info. Specially for Aokromes. 2011-02-17 19:47:08 +06:00
Shauren
8d5ebded8c Core/Spells: Moved dungeon encounter crediting to scripts 2011-02-04 11:27:02 +01:00
Shauren
c2b0bcbd6c Core/Instances: Implemented DungeonEncounter.dbc for creating completed encounters mask to use in packets
Core/Dungeon Finder: Implemented new way of giving random dungeon rewards, linked to DungeonEncounter.dbc
2011-02-03 22:20:40 +01:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Shauren
5adf9c5d30 Scripts/Spells: Moved all special target filtering cases to scripts 2011-01-22 17:21:24 +01:00
Shauren
c2690f748b Scripts/Spells: Implemented UnitTargetHandler spell script hook, it can be used to filter area targeting spells 2011-01-21 23:42:51 +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
Shauren
458c7c642f Core/Spells: Fixed Glyph of Pain Suppression
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2011-01-14 20:24:39 +01:00
Shauren
8d59953f93 Scripts/Icecrown Citadel
* Call EnterEvadeMode before teleporting players to entrance - prevents players being stuck in combat
* Fixed Gaseous Blight stacking damage
* Properly initialize phase for Professor Putricide when entering combat
* Fixed Blood Nova and Boiling Blood abilities of Deathbringer Saurfang
2011-01-12 22:50:51 +01:00
Anubisss
806794d4ce Fix a crash in Spell::CheckCast().
This crash happens when effect is SPELL_EFFECT_TALENT_SPEC_SELECT and the caster is not a player.
You should always check object's type (or sure that object is 101% a player) before you use ToPlayer() casting function.

Signed-off-by: Anubisss <anubisss210@gmail.com>
2011-01-12 02:06:06 +01:00
sarjuuk
0cf89f635f Core/Spells: Starfall skips targets in stealth, invisibility or not in LoS
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>

Also minor codestyle fixes from previous commits
2011-01-06 19:57:36 +01:00