Vincent-Michael
1d39db16b9
Core/Misc: Kill Whitespace ...
2014-06-07 23:58:08 +02:00
joschiwald
3c97735056
Scripts/PoS: fixed rimefang icy blast
...
Closes #632
2014-05-23 16:16:31 +02:00
jackpoz
1083dbb993
Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*
2014-05-20 21:21:33 +02:00
Shauren
f9c7bb4171
Partially revert f296095191 "Fix various warnings. The core, the scripts and the tools now compile without warnings with -Wall -Wextra -pedantic."
...
Visual studio does not support constexpr
Made semicolon after "Prepare*Script" mandatory - workaround for dumb IDEs inserting extra indentation level after newline
2014-05-18 12:50:10 +02:00
Praetonus
f296095191
Fix various warnings. The core, the scripts and the tools now compile without warnings with -Wall -Wextra -pedantic.
...
-Fix warnings from -Woverflow on implicit constant conversion.
-Fix warnings from -pedantic.
-Fix warnings from -pedantic.
-Fix warnings from -Wformat.
Two minor changes in addition :
-Replace a defined value equal to 2^31 - 1 by std::numeric_limits<int>::max().
-Remove useless null-check on pointer returned by new. New doesn't returns nullptr on failure, it throws std::bad_alloc.
2014-05-15 21:32:47 +02:00
jackpoz
b17e3246fe
Core/Misc: Fix static analysis issues
...
Fix uninitialized values spotted by coverity.
Remove unused "dynamic analysis" code, use Valgrind or another dynamic analysis tool instead if needed.
2014-05-12 21:18:59 +02:00
joschiwald
de6eddaa35
Scripts/HoR: fixed conflict between multiple classes with same name
...
Closes #12051
2014-05-11 18:13:02 +02:00
MitchesD
8e7cf15dd1
Scripts/HallsOfReflection: Major changes
...
* corrections to Intro Event (Falric, Marwyn etc.)
* fixed issues with Frostsworn General
* improved the whole Wrath of the Lich King event
* implemented outro gunship
* optimalization code and cleanup and fixed some typos
* Big thanks to @joschiwald, he is author too ;-)
2014-05-10 21:37:33 +02:00
Dehravor
24ae6a6802
Core/Misc: Remove obsolete C++11 backward compatibility macros
...
OVERRIDE, FINAL, DELETE_MEMBER
2014-04-29 16:35:11 +02:00
joschiwald
84bff76ba0
Core/Misc: remove some obsolete parameters
2014-04-28 20:05:36 +02:00
Vincent-Michael
0b615ec159
Scripts/Misc: Small code optimizations
2014-03-29 20:58:49 +01:00
jackpoz
f26a028d97
Core/Misc: Fix some static analysis issues
...
Fix some static analysis issues about uninitialized values. Most of them are false positives, always initialized before being accessed.
2014-03-16 14:18:33 +01:00
jackpoz
856e0933b5
Scripts/HoR: Fix log error
...
Fix "DoZoneInCombat called for creature that has empty threat list" error caused by DoZoneInCombat() called by IsSummonedBy() in a script before the Creature is allowed to enter combat.
2014-01-30 21:29:37 +01:00
Vincent_Michael
46e1b93c2b
Scripts: A lots of changes here and there (maybe useless?!?)
2014-01-23 22:54:01 +01:00
joschiwald
7378baee49
Scripts/PoS/Garfrost: cleanup saronit blocks after death
2014-01-10 17:37:03 +01:00
Vincent_Michael
20004050bc
Update copyright note for 2014.
...
Happy new year.
2014-01-01 00:07:53 +01:00
jackpoz
64b42c75d2
Scripts/Misc: Code cleanup
...
Remove some NULL checks not needed anymore after 3744c14184 .
Fix an invalid Creature to TempSummon cast.
2013-12-30 23:36:49 +01:00
jackpoz
5c64dade0f
Scripts/Misc: Fix uninitialized values
...
Fix uninitialized values in scripts reported by valgrind.
Fix target and GetOwner() NULL dereferences .
2013-12-29 23:01:00 +01:00
jackpoz
3744c14184
Scripts/Misc: Ensure Creatures are in instances when required
...
Create ScriptedAIs that require a InstanceScript reference only if the InstanceScript exists, so if these Creatures are in an instance. ScriptedAIs that don't require a InstanceScript reference have not been modified.
This fixes many possible NULL dereference crashes happening when spawning a scripted Creature outside of an instance.
Fixed a GetOwner() and a ToPlayer() NULL dereference crashes too.
2013-12-29 01:19:52 +01:00
joschiwald
fd6167cf66
Scripts:
...
- cleanup obsidian sanctum script
- prevent yelling texts if non player died in some scripts
2013-12-23 23:55:15 +01:00
Shauren
107af52853
Core/Chat: Refactored building chat packets
...
* Moved everything into one specialized method instead of being scattered all over the place
* Allow localizing creature names in chat messages (when using $N)
* Send SMSG_GM_MESSAGECHAT for gm messages
2013-12-23 14:23:49 +01:00
jackpoz
f418f4cf94
Core/Misc: Fix some static analysis issues
...
Fix some static analysis issues about uninitialized values in scripts.
Add spell id validation in Unit::SpellNonMeleeDamageLog() .
2013-12-08 22:04:30 +01:00
w1sht0l1v3
dc1d1a684a
Scripts/HoR: Some fixups.
2013-12-05 16:05:15 +02:00
w1sht0l1v3
8920994045
Scipts/HallsOfReflection: Fix reset during mob waves.
...
closes #10995
2013-12-02 20:56:22 +02:00
joschiwald
b375106ed1
Scripts: prevent some runtime errors
2013-12-01 01:48:31 +01:00
Aokromes
dcfbe1d987
Instance/Halls of Reflection/Lich King event: Typo fix on 86e0c7d
...
Thx MitchesD
2013-11-24 02:52:27 +01:00
xjose93
86e0c7d856
Instance/Halls of Reflection/Lich King event: Implement loot chest in heroic mode and rename chest variables.
2013-11-22 16:05:27 +01:00
joschiwald
b5181d378f
Scripts/PoS: fix Tyrannus Overlord Brand thx @zwerg
2013-11-21 13:22:45 +01:00
joschiwald
0790138d73
Core. fix build and some codestyle changes
2013-11-13 23:32:38 +01:00
Ascathor
2607738990
Core/Code: Unify codestyle for brackets: {} to { }.
...
Also added missing copyright to some files.
2013-10-27 23:46:02 +01:00
Vincent_Michael
9802c7b891
Scripts/Misc: Coding Style unification? (by Aokromes)
2013-10-22 20:24:05 +02:00
joschiwald
95cad03fa4
Scripts/HoR: fixed infinite spawn, added some missing spell target conditions and fixed codestyle
...
Closes #10754
2013-10-08 04:22:26 +02:00
jackpoz
6cef507b89
Scripts/HallsOfReflection: Revert 3ffbd27cdd
...
Revert 3ffbd27cdd and PR #10985 , this change doesn't fix any issue and instead breaks the logic of the instance event.
2013-10-07 20:50:08 +02:00
Baeumchen
3ffbd27cdd
Update wrong Escape state
...
Found by w5860363 : http://www.trinitycore.org/f/topic/9112-halls-of-reflectioncpp-question%EF%BC%9F/
2013-10-02 19:08:14 +02:00
jackpoz
6477f8c453
Scripts/HoR: Fix possible array overflow
...
Fix possible array overflow reported by coverity, issue id 1062436 .
2013-09-15 14:12:54 +02:00
joschiwald
77f90c1c67
Scripts/Halion: refixed Twilight Cutter
...
Scripts/Garfrost: fixed forge jump
2013-09-11 17:07:29 +02:00
MitchesD
3420c70a47
Scripts/PitOfSaron: some changes
...
Closes #10740
2013-09-11 15:52:59 +02:00
Sebastian Valle
2cfcf9d3ef
Scripts/HallsOfReflection: Fixed a typo detected by static analysis tool.
2013-09-03 16:58:57 -05:00
Shauren
79d1b7f543
Scripts/Misc: Removed unused fields and fixed a warning about uninitialized value
2013-09-01 20:33:52 +02:00
Shauren
da693bbc81
Scripts/Halls of Reflection: Fixed accessing uninitialized memory
2013-08-23 18:45:17 +02:00
Vincent-Michael
8acefbff8c
Scripted: Use now override for instance scripts
2013-08-10 17:42:12 +02:00
Kirkhammett
c8bfb9cf4d
DB&Scripts/Icecrown: Fix quest The Last Line Of Defense and script Argent Cannons
...
Closes #998
Closes #10460
2013-08-06 23:16:03 +01:00
Vincent-Michael
75e6c40630
Core/Misc: Rename some no name enums
2013-08-06 21:16:05 +02:00
snakeice
75b4b0594f
Scripts/HoR: Major changes:
...
- Fixed Intro timers
- Fixed mobs aggro
- Fixed General's shield trow
- Added Jaina / Sylvannas / Lich King escape event
Closes #10303
Closes #2505
Closes #9865
2013-08-06 19:05:47 +01:00
Shauren
ac10589eda
Core/Misc: Fixed some issues found by Coverity Scan
2013-08-01 21:31:11 +02:00
joschiwald
d52ce57e59
Scripts/ForgeOfSouls: move "Mirrored Soul" into SpellScripts
2013-07-19 00:24:25 +02:00
Nay
3561ab98ba
Misc: Use override and final C++11 keywords in a few places (mostly scripts)
...
OVERRIDE and FINAL are TC macros (expand to nothing if compiler does not support C++11)
2013-07-06 20:21:45 +01:00
Vincent-Michael
6079f369af
Scripted/Misc: Some cleanup
2013-07-06 01:00:05 +02:00
Vincent-Michael
b4d4e04f53
Scripts/Misc: Rename creatures with mob_ / mobs_ in npc_
...
Note: Have fun :P
2013-07-04 22:11:47 +02:00
Shauren
112bc49c9a
Core/Units: Removed most calls to SendMovementFlagUpdate for creatures
2013-06-30 16:31:24 +02:00