Nay
abbb896cfb
Core: Fix many "errors"/warnings and coding style (2)
...
Scripts; also reverted a change to AuthSocket
Errors were found using Cppcheck, open-source static analysis tool
2012-08-30 22:44:03 +01:00
Nay
d533c950cb
Scripts: Fix code style after PR
2012-08-28 19:31:15 +01:00
thesensei
66917624bb
Core/Spells: Destabilize Azure Dragonshrine
...
*Spell script support for spell 49370
2012-08-28 20:58:03 +03:00
Nay
fc16106823
Scripts/Spells: Fix a typo in spell_q12372_cast_from_gossip_trigger and cleanup whitespace
2012-08-27 14:40:12 +01:00
Nay
f8c01739df
Scripts/Spells: Remove a not needed cast in spell_q12372_cast_from_gossip_trigger
2012-08-27 14:29:00 +01:00
thesensei
cc416592b9
Core/Scripts: Defending Wyrmrest Temple
2012-08-26 02:55:14 +03:00
Kandera
6890b0a950
Core/Spells: codestyle cleanup. case statements are your friend :]
2012-07-05 09:07:06 -04:00
AliveShiro
07e47b89ee
Fix Quest A Cleansing Song
2012-07-04 01:48:14 +02:00
Nay
87db7b246f
Fix build
2012-06-27 23:17:40 +02:00
Kandera
551878ad96
Core/Spells: correctly award kill credit for quest the focus on the beach.
2012-06-27 15:04:07 -04:00
Discover-
5057a8156d
Scripts/Quests: Fix compile from 0ecd9e72d0 - sorry guys.
...
Thanks @Vincent-Michael.
2012-05-10 13:52:22 +02:00
Discover-
0ecd9e72d0
Scripts/Quests: Script quest Leave Nothing to Chance.
...
Closes #1863
Closes #3087
Closes #2061
2012-05-10 13:43:40 +02:00
QAston
b899f5fc94
Core/SpellScripts: rename GetTarget*() functions to GetExplTarget*(), so the names reflect better what those functions do. Also update some comments.
2012-04-28 14:55:14 +02:00
Shauren
1851a2e9e3
Scripts: Replaced calls to ForcedDespawn with DespawnOrUnsummon (calls appropriate AI hooks in case of temporary summons) and made ForcedDespawn private
2012-04-24 16:53:37 +02:00
Subv
f8e9dedbe5
Scripts/Spells: Removed redundant code for spell 54798.
...
Closes #519
Signed-off-by: Subv <[email protected] >
2012-04-07 21:09:04 -05:00
QAston
ccbe209ded
Merge pull request #5343 from kandera/fix_spell_script_stuff
...
fix a few issues with the spell scripts i made.
2012-02-23 09:35:10 -08:00
w1sht0l1v3
1fc122e5c6
DB/Quests: Mounting Hodir's Helm.
...
DB/Quests: Quest relations for Polishing the Helm.
Closes #5231
2012-02-22 22:38:16 +00:00
Kandera
3d85e099e2
fix a few issues with the spell scripts i made.
2012-02-21 10:55:30 -05:00
click
dce3bc01ac
Core: Fix non-PCH building
2012-02-19 16:57:07 +01:00
click
5411e1ce52
Core: Clean up whitespace and tabs in the base sourcetree
2012-02-18 16:52:08 +01:00
Kandera
c517806a23
Scripts/Spells: Convert code from Spell::EffectDummy to spell scripts.
2012-02-18 12:12:49 +01:00
QAston
c7ea952a47
Core/Entities: Rename UNIT_FLAG_OOC_NOT_ATTACKABLE and UNIT_FLAG_PASSIVE to UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC respectively. New names tell much more about what those flags do.
2012-02-03 18:46:05 +01:00
Shocker
08be716ef8
Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_*
2012-02-03 19:02:17 +02:00
kiper
8299627ed9
Update headers for 2012. HAPPY NEW YEAR!!!
2012-01-01 00:32:13 +01:00
Discover-
ef4608f07c
Core/Quests: Fix an exploit in Red Snapper - Very Tasty!
...
Also fix a silly codestyle typo in previous commit.
Closes #3887
2011-12-25 00:13:28 +01:00
Nay
362b528bbb
Scripts/Quests: Fix quest What Do You Feed a Yeti, Anyway? (14112,14145)
...
Closes #2975
2011-10-22 13:18:17 +01: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
QAston
a2633bf7fc
Scripts: fix spell_generic_quest_update_entry script after e949ad3adb.
2011-09-27 00:12:45 +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
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
QAston
7871ead798
Merge pull request 'Fix quest New Recruit(13143) & Fix quest King of the Mountain(13280&13283)' from Kiperr/TrinityCore
2011-09-03 16:44:05 +02:00
Lopin
8ae290c6d1
Core/Spells: Fixed quest Salvaging Life's Strength
2011-08-24 16:45:49 +02:00
Lopin
ededca3311
Core/Spells: Fixed quest Stopping the Spread
2011-08-24 15:57:14 +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
click
70115f52f7
Core: Cleaning up hungarian notation - Phase3: pTarget -> target
2011-07-02 23:16:45 +02:00
click
169f5da8c3
Core: Cleaning up hungarian notation - Phase2: pPlayer -> player
2011-07-02 22:52:42 +02:00
click
f91ee24184
Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
2011-07-02 22:18:03 +02:00
Spp-
6fd41ae50e
Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts
2011-06-30 14:24:56 +02:00
Shocker
13b34a5d72
Scripts/Quests: Implement quest 12659 (Scalps!)
...
Thanks Malcrom for condition
Closes #917
2011-06-12 19:46:33 +03:00
click
158966dc79
Core: Codestyle cleanup
2011-06-11 22:35:29 +02:00
QAston
677cbbb93a
Scripts: Fix some crashes occuring due to unsafe use of AuraScript::GetCaster() method.
...
There's "returns unit which casted the aura or NULL if not avalible" written in description of the method, but who cares...
2011-06-11 12:42:01 +02:00
QAston
42a20f14ef
Core/Auras: Use existing aura object on aura reapply/stack increase instead of creating a new one.
...
You can hook on reapply/stack event by checking for AURA_EFFECT_HANDLE_REAPPLY aura handler mode, AURA_EFFECT_HANDLE_REAL is now not triggered on aura refresh/stack.
2011-05-29 13:18:47 +02:00
QAston
79aa5233d7
Scripts/AuraScripts: Use AfterEffectApply and AfterEffectRemove hooks in scripts, where they fit better than On* hooks.
2011-05-25 19:12:41 +02:00
Azazel
72040c1654
Core/Misc: fix compilation warnings
2011-04-11 17:38:57 +06:00
Supabad
368818a810
Core/Spells: replace spell Symbol Of Life from SpellEffects to SpellScript
2011-04-06 11:34:50 +02:00
Shauren
cb33b050d9
Scripts/Icecrown Citadel: Compile warning fixes
2011-03-19 11:44:04 +01:00
kaelima
8d4b04318f
Scripts/Spells: Added spell script for Shadowy Disguise(48917)
2011-03-10 20:54:24 +01:00
Liberate
0e7b60bf19
Quests: Fixes quest "Going Bearback". Needs DB support to work.
...
ref ticket:472
2011-01-30 18:22:30 +01:00
Shauren
9c0cd63e93
Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon
2011-01-02 21:33:37 +01:00
Machiavelli
957c69de83
Update copyright note for 2011.
...
Happy new year.
2011-01-01 15:01:13 +01:00