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
Dehravor
24ae6a6802
Core/Misc: Remove obsolete C++11 backward compatibility macros
...
OVERRIDE, FINAL, DELETE_MEMBER
2014-04-29 16:35:11 +02:00
jackpoz
8ca6371793
Core/Misc: Ensure GetVictim() returns a valid reference when expected
...
Add a new method EnsureVictim() which asserts a valid not NULL reference will be returned to the caller. Use this whenever the GetVictim() would be dereferenced .
2014-04-19 21:48:22 +02:00
MitchesD
ab602837b1
Scripts/ZulGurub: clean up the code and remove old hacks
2014-04-11 18:43:38 +02:00
jackpoz
3b247f6bca
Scripts/ZulGurub/Jeklik: Add missing "break"
2014-03-15 19:45:44 +01:00
Vincent_Michael
79a2a0c434
Core/Spell: Fix logic fail in 96ae4caf62
2014-01-26 16:42:02 +01:00
Vincent_Michael
46e1b93c2b
Scripts: A lots of changes here and there (maybe useless?!?)
2014-01-23 22:54:01 +01:00
MitchesD
57e599fa02
Scripts/ZulGurub/Jeklik: fixed flying in first phase, reworked spawn and rewritten to EventMap
...
Closes #11277
2014-01-22 23:46:45 +01:00
joschiwald
cd76d32907
Core/Entities: correct creature damage, offhand damage should work too
...
* todo: some creatures need dmg_multiplier update in creature_template
2014-01-04 18:22:06 +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
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
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
joschiwald
eddf1b5a64
Scripts: replace some SetOrientation() calls with spline packets and some random changes
2013-12-10 18:46:11 +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
Vincent-Michael
8acefbff8c
Scripted: Use now override for instance scripts
2013-08-10 17:42:12 +02:00
Vincent-Michael
e464d2bd2c
Scripted: Some cleanups + ninja changes
2013-07-08 21:15:23 +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
b4d4e04f53
Scripts/Misc: Rename creatures with mob_ / mobs_ in npc_
...
Note: Have fun :P
2013-07-04 22:11:47 +02:00
Vincent-Michael
e6185c92fc
Scripts: Convert DoCast(me->GetVictim(), SPELL_XXXXX); in DoCastVictim(SPELL_XXX);
2013-06-22 16:53:13 +02:00
Malcrom
66978cfc3b
Core: Some function renaming.
2013-06-11 19:54:27 -02:30
Spp
00c1168897
Core/Misc: Remove trailing whitespace, compile warnings and minor cosmetic changes
2013-05-21 08:37:28 +02:00
Shauren
8633452f8d
Scripts/Misc: Fixed many scripts not executing one of their actions because of an event with id = 0
2013-05-19 10:52:39 +02:00
Nefarion
49fd11ab5a
First step of comment style refactoring to doxygen-style.
2013-03-08 21:55:37 +01:00
Shauren
5b414bb813
Core/Scripts: Removed useless const modifier on method parameters accepting primitive types passed by value
2013-02-19 17:35:27 +01:00
Vincent_Michael
847cafc121
Scripts/Misc: Some code optimisations
2013-02-03 00:38:34 +01:00
Gacko
dbecf05e39
Core: Logical fixes and improvements in EventMap
2013-01-30 18:39:34 +01:00
Vincent_Michael
367e1f7b2b
Core: Fix warnings
2013-01-21 10:11:46 +01:00
Aokromes
321b425f36
Update COPYING
...
Signed-off-by: Nay <dnpd.dd@gmail.com >
2013-01-21 02:47:51 +00:00
Nay
3523d84a91
Shooting myself in 3... 2...
2013-01-21 02:34:43 +00:00
Nay
2363552655
Scripts/ZG: Fix a warning and a compile error introduced in previous commit
...
Personal opinion: BossAI should not have a public field named "instance"
2013-01-21 02:24:25 +00:00
Nay
c6c23d67b8
Scripts/ZG: Fix some code style issues and logic errors
2013-01-21 02:10:01 +00:00
Malcrom
33b7685696
Scripting/ZulGrub: Fix last commit
2013-01-20 18:20:46 -03:30
Malcrom
b7dbc8d746
Scripting/Zulgrub: Updated Boss Arlokk Script.
2013-01-20 18:04:06 -03:30
Warpten
faccbef869
Scripts/ZulGurub: I can do this!
...
Commiting stuff one hour after waking up is no good.
2013-01-16 07:18:47 +01:00
Warpten
3df4075a04
Scripts/ZulGurub: Fixed Hakkar's aspects.
2013-01-16 07:16:22 +01:00
Warpten
797be8d9ff
Scripts/ZulGurub: Missing mass replace changes and typo/codestyle fixes.
2013-01-16 07:07:48 +01:00
Warpten
26bf10365e
Scripts/ZulGurub: Forgotten change to previous commit. Damned Ctrl+S.
2013-01-16 06:55:46 +01:00
Warpten
803bf2f9cc
Scripts/ZulGurub:
...
* Fixed non-PCH compile.
* Changed some codestyle on Mandokir.
* Fixed compile warnings and a few typos.
* Remove instance checks and use a wrapper to get AIs.
2013-01-16 06:51:59 +01:00
Malcrom
ace7bbeddf
Core/Zul'Grub: Fix up Mandokir Boss
2013-01-16 00:41:03 -03:30
Malcrom
b138d7fdf4
Core/Scripting: Bosses should now work in ZG.
...
Note: Mandokir is being rewritten blizzlike and not everything is working properly yet.
2013-01-15 13:23:33 -03:30
Malcrom
83c753f607
Core/Scripting: more Zul'Grub updates
2013-01-13 20:58:48 -03:30
Malcrom
114617fcb0
Core/Scripting: Fix build
2013-01-13 19:59:09 -03:30
Malcrom
0759f6c910
Core/Scripting: More Zul'Grub updates
2013-01-13 19:48:25 -03:30
Malcrom
0a4cfd04bb
Core/Scripting: Update boss Mar'li script
2013-01-13 17:42:16 -03:30
Malcrom
63488f3a86
Core/Scripting: Fix Zul'Grub Instance
2013-01-13 17:23:46 -03:30
Malcrom
cdafb60f0c
Core/Scripting: Clean up boss Jin'do
2013-01-13 15:05:31 -03:30