DanVS
28cb2af1c5
Core/Scripts: Unify Chrono Literals ( #22420 )
...
* Unify Chrono Literals
* Retire IN_MILLISECONDS
* Build fix
* Build fix (sequel)
* Retire urand()
* Edge cases
* Build
* Whitespaces
* More edge cases
* Additional cases
(cherry picked from commit 5b0f4009df4cde413c92c73467ca9a63e79a772b)
2021-11-09 00:26:59 +01:00
Treeston
bce43de7f3
Core/AI: Some more refactoring prep for #19930 . CreatureAI::EnterCombat is now called CreatureAI::JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
...
(cherry picked from commit 6113b9dec2e0081c36c36c2974a28ed0693bc601)
2021-04-16 20:22:13 +02:00
Treeston
129dd7c909
Core/Scripts: dynamic_spawning follow-up, I had forgotten JustRespawned existed.
...
- Rename JustRespawned to JustAppeared, which better matches its behavior anyway.
- Properly invoke JustAppeared for new (re-)spawns - fixes #20111 .
- Fix Thaddius script to work with dynamic_spawning (mostly unrelated to the above) - Feugen/Stalagg should really be a summon group, but I don't have time to fix that right now.
- Fix default value for DynamicEscortNPC to match worldserver.conf.dist.
(cherry picked from commit 184c45cfe0fbe4f3e4fb701f0f99994df98bdc8a)
2020-08-22 20:10:42 +02:00
ariel-
93c19c4194
Core/Misc: camelize GetFaction/SetFaction properly
...
(cherry picked from commit 4c4dca6d694bd1064b403a31a5b1c776a326f3ce)
2020-04-29 01:36:41 +02:00
Aokromes
b0bf1275ee
New Year
2020-01-02 06:44:10 +01:00
vincent-michael
5620eb9463
Update copyright note for 2019
...
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
vincent-michael
7d00ae4045
Update copyright note for 2018
...
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Aokromes
df6e0538fe
Misc: More cleanup
2017-11-25 02:57:49 +01:00
Shauren
a0a158b5b8
Core/Scripts: Include cleanup
2017-05-28 16:34:44 +02:00
treeston
dd0df772df
Scripts/Events: Globally fix all ExecuteEvent loops to check UNIT_STATE_CASTING after each iteration, instead of just checking it once initially.
...
Fixes and closes #17892 .
(cherry picked from commit ac62d7156f93bf86f57dbad1f24f14031322fd5a)
Drycoding is bad, mmkay?
(cherry picked from commit ed83a35fbeeb7f9005fe4792225fb50700791c6f)
2017-02-19 15:09:02 +01:00
vincent-michael
86b98686a9
Update copyright note for 2017
...
Happy new year
2017-01-01 16:23:13 +01:00
treeston
5fb88c7121
Merge branch '3.3.5-boundaryagain' into 3.3.5-base (PR #16270 )
...
(cherry picked from commit 1050b68899c661ea09da9e36edb82e8648393673)
2016-03-22 23:37:02 +01:00
Vincent-Michael
478cc756eb
Update copyright note for 2016
...
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Vincent-Michael
ab90f74486
Update copyright note for 2015
...
Happy new year
2015-01-01 00:28:09 +01:00
Shauren
a0e50ea35f
Core/Entities: Use ObjectGuid class in game project
2014-09-14 16:14:12 +02:00
MitchesD
1e3aa97098
Scripts/Misc: some small changes after recent commits
2014-09-11 15:22:30 +02:00
Nyeriah
b35edcabb6
Scripts/AV: Drekthar updated to EventMaps
2014-09-11 03:25:15 -03:00
Nyeriah
561cc47a00
Scripts/AV: Captain Galvangar updated to EventMaps
2014-09-10 03:45:44 -03:00
Vincent-Michael
f2655b2d2d
Core: Remove whitespace (again, again, ...)
2014-09-07 22:22:16 +02:00
Nyeriah
62cfca23ce
Core/Misc: Meh some white lines, an addition to last sql's comment and a spotted typo
2014-09-07 14:29:04 -03:00
Nyeriah
93a01b6d50
Scripts/AV: Balinda Stonehearth
...
- Updated to EventMaps
- Removed manual spawning of Water Elemental by using proper spell
* The Water Elemental has a duration, it'll despawn once it's over. She'll resummon it during the encounter if it dies or disappears.
* Fixes it's level scalling with owner.
- Moved Water Elemental AI to database.
- Script update
** Patch 3.1.0 (14-Apr-2009): Now casts Ice Block.
2014-09-07 14:20:26 -03:00
jackpoz
dd4dbdcd16
Core/Misc: Refactor scripts to fix static analysis warnings
...
First batch of fixes targeting 100 issues reported by Coverity
2014-08-31 20:42:02 +02:00
joschiwald
831a6603d4
Core/Battleground/AV: convert trinity_strings to proper creature_text
...
Closes #12861
2014-08-30 03:34:35 +02:00
jackpoz
8402570bb8
Scripts/Misc: Fix static analysis issues
...
Replace CAST_AI() macro with ENSURE_AI() when dynamic_cast is not supposed to return NULL.
2014-08-09 00:12:20 +02:00
jackpoz
1083dbb993
Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*
2014-05-20 21:21:33 +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
6dcd8c8545
Core/Misc: Fix some static analysis issues
...
Fix some static analysis issues about:
- uninitialized values, most of which are false positives, always initialized before being accessed
- unchecked return values
- dead code never executed
- bad formatting leading to wrong behavior
Please ensure EventMap is never used with event id set to 0 or those events will never execute.
2014-03-22 14:54:32 +01:00
Vincent_Michael
20004050bc
Update copyright note for 2014.
...
Happy new year.
2014-01-01 00:07:53 +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
Vincent_Michael
9802c7b891
Scripts/Misc: Coding Style unification? (by Aokromes)
2013-10-22 20:24:05 +02:00
Sebastian Valle
24f8b2b994
Core/Misc: Fixed some more issues found by code analysis tools.
2013-09-03 15:09:37 -05: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
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
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
Gacko
4065176897
Core/DB: Convert 14 more scripts to creature text
2012-11-23 16:25:59 +01:00
Warpten
51b23af98d
Core/Scripts: Cleanup alterac_valley.cpp.
2012-11-09 18:14:30 +01:00
Vincent-Michael
634b3645d5
Core/Misc: Use proper headers to optimize compile
2012-07-30 05:38:40 +02:00
Gyx
d9088c083c
Core/Script: Code style and some rewriting.
...
JustDied(Unit* Killer) -> JustDied(Unit* killer)
JustDied(Unit* /*Killer*/) -> JustDied(Unit* /*killer*/)
JustDied(Unit* /*unit*/) -> JustDied(Unit* /*killer*/)
JustDied(Unit* /*slayer*/)) -> JustDied(Unit* /*killer*/)
JustDied(Unit* /*victim*/) -> JustDied(Unit* /*killer*/)
JustDied(Unit* victim) -> JustDied(Unit* killer)
JustDied(Unit* /*who*/) -> JustDied(Unit* /*killer*/)
JustDied(Unit* who) -> JustDied(Unit* killer)
JustDied(Unit*) -> JustDied(Unit* /*killer*/)
Signed-off-by: Gyx <[email protected] >
2012-03-31 18:56:37 +08:00
click
5411e1ce52
Core: Clean up whitespace and tabs in the base sourcetree
2012-02-18 16:52:08 +01:00
malcrom
03a7f12916
Core/Script: update creature_text for Twilight Corruptor from sniffs
...
closes #4697
2012-01-08 14:20:11 +01:00
ZxBiohazardZx
b556ac564b
Core/Build: fix build
2012-01-08 12:50:15 +01:00
malcrom
ae4d221b3c
Core/Script: update creature_text for Vanndar from sniffs
...
closes #4696
2012-01-08 12:07:12 +01:00
malcrom
4112b2a7d4
Core/Script: update creature_text for Drekthar from sniffs
...
closes #4693
2012-01-08 11:58:19 +01:00
malcrom
2ba7cfacca
Core/Script: update creature_text for Galvangar from sniffs
...
closes #4694
2012-01-08 11:47:41 +01:00
malcrom
b6f9caff6b
Core/Script: update creature_text for Balinda from sniffs
...
closes #4692
2012-01-08 11:43:35 +01:00
kiper
8299627ed9
Update headers for 2012. HAPPY NEW YEAR!!!
2012-01-01 00:32:13 +01:00