Commit Graph
650 Commits
Author SHA1 Message Date
leak 137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Manuel 70a45be159 Core/Scripts/Oculus: Improved Energize Core ability of Boss Varos. Thanks to Xanadu, Gyullo and Josh.
Signed-off-by: Manuel <[email protected]>
2011-01-24 18:57:11 -03:00
Shauren 9dfa00bb60 Core/Auras: Removed unneeded typecasting from aura 54798 handler 2011-01-23 11:09:26 +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
Manuel 9c7e0702a6 Core/Spell: Modified ImplicitTargets of spells 54069 and 56251 for correct functionality. Thanks to Xanandu and click.
Signed-off-by: Manuel <[email protected]>
2011-01-20 12:31:17 -03:00
Manuel 19634e7fce Core/ZoneScript: Implemented ProcessEvent function for units.
Signed-off-by: Manuel <[email protected]>
2011-01-20 12:27:08 -03:00
leak dd751242fc Core/Spells: Better solution for exploit check (Thanks to manuel)
Readd lost changes from char db type cleanup
2011-01-20 03:06:51 +01:00
leak 40af92dd66 Core/Spells: Stop exploit that allowed looting despawned gameobjects by packet manipulation. 2011-01-18 20:02:28 +01:00
Shauren b28881f648 Core/Spells: Fixed Ignite talent getting removed by Ice Block
Closes #138
2011-01-16 19:26:01 +01:00
Machiavelli deed0d0781 Core/General: Fix some comment style. //* to // *. Fixes certain code display errors on nano. Thanks to Aokromes for pointing out. 2011-01-16 12:23:17 +01:00
Machiavelli 09f2a48227 Core/Spells: Add unittarget check for spell 54798 2011-01-16 00:50:57 +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 <[email protected]>
2011-01-14 20:24:39 +01:00
Machiavelli d399daab59 Core/Quests: Resolve ambiguity between QUEST_STATUS_COMPLETED and rewarded state by implementing QUEST_STATUS_REWARDED. The latter is not used in the database explicitly, only in the core. This is to prevent overhead by iterating over the rewarded quests storage multiple times.
All relevant upper level code has been updated accordingly to the best of my ability.
2011-01-13 23:06:59 +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 <[email protected]>
2011-01-12 02:06:06 +01:00
Manuel 014714fb17 Core: Killing magic numbers. 2011-01-09 20:44:33 -03:00
Manuel 5cf76896eb Core/Battleground: Implemented blizzlike script for Isle of Conquest, written by gyullo and me, based on Socolin's and Josh's patch -BIG THANKS TO THEM-
Anyway the map is not yet playable, there are issues not related with the script.

I also want to thanks to QAston, linencloth, Shauren and Machiavelli to be so patient with my questions.
2011-01-09 00:00:08 -03:00
McBitter 63333dc6ff Core/Spells: Fixed targeting for spell 49305 (missing unit target)
Signed-off-by: Shauren <[email protected]>
2011-01-08 17:40:10 +01:00
Machiavelli dc3d6a2f23 Remove redundant code from 1487ebedaa 2011-01-07 19:13:19 +01:00
Machiavelli c65e3822a2 Fix build from 06314c9387
closes #99
2011-01-06 22:45:07 +01:00
Sarjuuk 06314c9387 Core/Spells: Implemented Pygmy oil use effect
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 21:40:32 +01:00
sarjuuk dfc848b88e Core/Spells: Periodic Dummy for spell 54798. Fixes quest 12851
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 20:25:51 +01:00
Ottowayne 7aa85728fc Core/Spells: Dummy for spell 51961; support for Quest 12532 & 12702
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 20:22:39 +01:00
Ottowayne 1487ebedaa Core/Spells: Dummy for spell 47703 (Unholy Union) for quest 12126
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 20:14:13 +01:00
sarjuuk 0cf89f635f Core/Spells: Starfall skips targets in stealth, invisibility or not in LoS
Signed-off-by: Machiavelli <[email protected]>

Also minor codestyle fixes from previous commits
2011-01-06 19:57:36 +01:00
sarjuuk 20b49bccb0 Core/Spells: Set energy in cat form to zero on shapeshift before calculating energy gain from furor talent.
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 19:43:36 +01:00
Ottowayne b0c559e704 Core/Spells: Fix Spell 54577 - Support for Quest 12828
Signed-off-by: Machiavelli <[email protected]>
2011-01-06 19:33:22 +01:00
Shauren 3208b7ae1f Core/Auras: Prevent phase aura handler from incorrectly being stopped on aura removal
Closes #32
2011-01-04 22:41:44 +01:00
Anubisss 80da87f015 Add one more check to EffectDispel.
Passive auras are not dispelable.
This fixes a bug like spell Omen of Clarity (16864) can be dispelled by Purge (370) if you have a non passive aura like Mark of the Wild (1126).

Signed-off-by: Anubisss <[email protected]>
2011-01-02 22:43:36 +01:00
Shauren 9c0cd63e93 Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon 2011-01-02 21:33:37 +01:00
Shauren a3eff12b33 Core/Auras: Fixed transform aura stacking logic 2011-01-02 17:22:45 +01:00
Machiavelli 957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
QAston 42d3130a56 Core/Auras:
Fix a crash with spell 33499 - BIG thanks to Shauren for finding the reason of this crash
 Corrections in managing stacked auras which change unit model.
2010-12-31 18:12:20 +01:00
QAston 1b18a0ac65 Core/Auras: Fix aura positivity check after rev bb4bd46d21. 2010-12-31 16:12:29 +01:00
QAston dd5a77bebc Core/Auras: Recheck aura presence on target after calling linked events in charm and vehicle aura effect handlers. 2010-12-31 15:37:44 +01:00
QAston 4eccbb81af Core/Auras: Recheck aura presence on target after calling linked events in aura effect handlers. Prevents undefined behavious when aura effect remove handler is called before apply handler is finished. 2010-12-31 14:39:18 +01:00
QAston c220fbbc45 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2010-12-31 12:52:37 +01:00
QAston bb4bd46d21 Core/Auras: Do not recheck aura positivity every aura effect apply/remove. 2010-12-31 12:50:17 +01:00
John Holiver 3a053c6cd3 Scripts/Trial of the Crusader:
1) Fix Leeching Swarm damage and create spell difficulty links to code. Closes  issue #4909 .
2) Fix Valkyr's Touch. Closes  issue #4553 .
3) Fix Permafrost aura difficulty check.
4) Reduce Slime Pool damage range.
5) Avoid Shaman Champion Heroism spam using 5 minutes (CD) as timer.
6) Fix many spell target selection to only select players (no more totens or pets).
7) Fix Anub'arak Spike being able to receibe the permafrost aura in order to cast spike fail, hopefully.
2010-12-31 06:01:01 +01:00
QAston 8cd2c73e45 Core/ScriptSystem: Add OnEffectManaShield and AfterEffectManaShield hooks to AuraScript class. Usage of these is the same as similar Absorb hooks.
Scripts: Move Incanter's Absorbtion script from Unit::CalcAbsorbResist to AuraScript.
2010-12-30 19:05:19 +01:00
QAston c8adcc95f9 Core/Unit: Move spell specific code from Unit::CalcAbsorbResist to AuraScripts. 2010-12-30 02:03:46 +01:00
leak 1c244cced5 Core/Entities: Fixed disarming and related exploits
- Disarm shouldn't deduct stats other than weapon damage
- Ferals shouldn't be affected by disarm
- Fixed meta gem stacking exploit
2010-12-29 17:18:29 +01:00
Machiavelli 88fe1da9eb Core/Spells: Fix caster selection in aura´s of type 284 (SPELL_LINKED_AURA).
Huge thanks to QAston for the brainstorming session.

--HG--
branch : trunk
2010-12-27 23:56:41 +01:00
click 464f1a9f8f Core: Kill off some warnings
--HG--
branch : trunk
2010-12-27 22:58:22 +01:00
Shauren 52620db629 Core/Auras: Fixed enchant proc stack rules
Closes issue #5222.

--HG--
branch : trunk
2010-12-27 22:27:11 +01:00
QAston ef968f4b15 Core/Unit: Big cleanup in Unit::CalcAbsorbResist
Core/AuraScript:
	Fix compile time check for AuraScript functions
	Remove AuraApplication from hook functions parameter list, use GetTarget() and GetTargetApplication() instead
	Add OnEffectAbsorb hook
Scripts: move handlers of Spell Deflection, Savage Defense, Primal Tenacity, Nerves of Steel, Astral shift from core to scripts.

--HG--
branch : trunk
2010-12-27 20:14:54 +01:00
Machiavelli dd745ef326 Core/Vehicles: Some research on VehicleSeatFlagsB.
It is assumed that VehicleSeatFlagsB & 322 means the seat can be used indirectly (ie. by aura 236 (SPELL_AURA_CONTROL_VEHICLE)) even though !(VehicleSeatFlags & VEHICLE_SEAT_FLAG_USABLE).
More research to be done Soon (tm).

--HG--
branch : trunk
2010-12-27 16:55:17 +01:00
Machiavelli bdc47053cc Core/Spells: Partial fix spells 62056, 63985 (Stone Grip Force Cast - Part of Kologarn encounter), underlying AuraEffect::HandleAuraControlVehicle will no longer prematurely return.
--HG--
branch : trunk
2010-12-27 14:53:47 +01:00