karn
26496375f8
Script/IoC: Move some spell scripts from spell_generic to isle_of_conquest cpp
...
Signed-off-by: DDuarte <[email protected] >
2014-07-24 03:49:07 +01:00
Shauren
7532864264
Buildsystem/MSVC: Warning fixes
...
C4800 'type' : forcing value to bool 'true' or 'false' (performance warning)
C4127 conditional expression is constant
2014-07-17 15:42:57 +02:00
Subv
dfdc19f3bc
Merge branch master into boost
...
Conflicts:
BattlegroundMgr.h
2014-07-13 16:52:38 -05: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
joschiwald
29610b250d
Core/Spells: fixed Throw Shield Visual and Clone Weapon
2014-04-05 00:37:07 +02:00
jackpoz
8c44259fae
Core/Misc: Fix some static analysis issues
...
Fix uninitialized values, most of which are false positives, always initialized before being accessed.
Add some asserts and additional NULL checks as sanity checks. Use SpellMgr::EnsureSpellInfo() if the spell id is valid and always supposed to return a valid not-NULL SpellInfo* .
2014-03-27 21:43:59 +01:00
Shauren
a4d8a26dc7
Scripts/Icecrown Citadel: Icecrown Gunship Battle
2014-03-23 02:01:13 +01:00
joschiwald
96060bf007
Core/Spells: move some spells so spellscripts
2014-01-26 01:02:20 +01:00
Vincent_Michael
20004050bc
Update copyright note for 2014.
...
Happy new year.
2014-01-01 00:07:53 +01:00
Malcrom
fe95371d9a
Core/Scripting: Replace casted with cast as casted is not a word.
2013-12-25 14:16:55 -03:30
joschiwald
0667e89005
Scripts/DrakTharonKeep: add some spellscripts, add yells to novos, and do some cosmetic changes
2013-08-07 17:31:36 +02:00
Vincent-Michael
bab04cc5f8
Core/Spells: Fix try for logic fail in 4ba3c2e51d
2013-07-30 23:59:30 +02:00
Vincent-Michael
1ac4f0a9c1
SQL: Rename in correct name
2013-07-19 14:01:25 +02:00
Vincent-Michael
4ba3c2e51d
Misc: Some cleanup
2013-07-17 19:42:15 +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
a0fad6faa9
Core: Fix warnings and some cleanup
2013-06-21 18:06:38 +02:00
Malcrom
6157f240ed
Core/Scripting: Add spell script for vendor bark trigger
2013-06-20 22:09:42 -02:30
Malcrom
1554ca8b1f
Core/Scripting: Add spell script for spell 55945 Spectator - Cheer Trigger
2013-06-20 17:15:27 -02:30
Pitcrawler
368e3c17a1
Core/Scripts: Simplify spellscript from 1f785905d5
2013-06-08 19:30:40 +02:00
Pitcrawler
1f785905d5
DB/Quests: Fix Danger! Explosives!, closes #6850 closes #9458
2013-06-08 16:21:24 +02:00
Spp
00c1168897
Core/Misc: Remove trailing whitespace, compile warnings and minor cosmetic changes
2013-05-21 08:37:28 +02:00
kandera
abbe692d72
Core/Cleanup: cleanup tabs and change them to spaces
2013-04-03 18:22:22 -04:00
Pitcrawler
294fac60a0
DB/Quests: Fix It Was The Orcs, Honest! Closes #2037
2013-04-02 01:06:19 +02:00
Nefarion
49fd11ab5a
First step of comment style refactoring to doxygen-style.
2013-03-08 21:55:37 +01:00
Spp
61979f8591
Scripts/Player: Add OnMapChanged to PlayerScripts (after map changed)
...
Core/Dungeon Finder: Use OnMapChanged script to cast/remove Luck of the draw
- Also move code to force party update to LfgPlayerScript
- Remove some obsolete Lfg code after recent commits
2013-02-04 16:52:43 +01:00
Spp
ec5d16db8a
Core/Dungeon Finder: Declare some functions private as those are not used outside LFGMgr. Also do not expose LFGDungeonData outside LFGMgr
2013-02-04 06:43:03 +01:00
Spp
f743424f63
Core/Dungeon Finder: Corrections to previous commit
...
- player::inRandomLfgDungeon was supposed to return if current player map and difficulty are the ones player applied for
2013-02-04 05:50:52 +01:00
Spp
f753c989f2
Core/Dungeon Finder: Simplify Spell Luck of the draw code
...
Core/Dungeon Finder: Partial recode of "group list" using existing Lfg functions
2013-02-04 04:43:49 +01:00
w1sht0l1v3
ffb4c63fe3
DB/Misc: Add full script for Pilfering Perfume (A:24656 H:24541)
...
Closes #5205
2013-02-04 05:22:09 +02:00
joschiwald
af50ce6223
Core/Spell: convert more spells to SpellScripts
2013-01-22 23:36:51 +01:00
joschiwald
c38d95ac33
Core/Spells: convert some spells to SpellScripts
2013-01-20 04:30:17 +01:00
Spp
802657250c
Core/Misc: Apply codestyle to multiple files
2013-01-14 09:50:59 +01:00
Vincent_Michael
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
joschiwald
f4e7cde1b5
Core/Misc:
...
- some simplifications in reputation calculation
- removed aura in SPELL_AURA_LINKED should depends on SpellDifficulty
- remove some unneeded variable declarations when it's already declared
- remove some hacks
- fix some warnings in Lfg stuff
- some codestyle changes
2012-12-19 12:55:51 +01:00
Vincent_Michael
d2cc278283
Core/Spells: Rename spell script scripts in correct script name
2012-12-14 23:19:03 +01:00
CeIa
b87cc31106
Scripts/Events/Achievement: fix 'Out With It'
...
Credits to @darkman1983
Closes #8211
Closes #8126
Signed-off-by: Nay <[email protected] >
2012-12-14 01:23:53 +00:00
Vincent-Michael
ddb6c95042
Core/Spells: Convert Replenishment in spell script
2012-11-30 18:27:34 +01:00
Spp
b5c9ab8802
Core/Misc: Reduction of header dependencies - Step II
2012-11-20 12:30:30 +01:00
Spp
b99c347747
Core: Remove Player.h dependency from all the possible headers
2012-11-17 05:18:37 +01:00
Spp
67a03027ae
Proper naming of LfgDungeon structures
2012-10-19 17:47:51 +02:00
Spp
d0334bf948
Core/Dungeon Finder: Some optimizations.
...
- Store teleport coordinates to avoid recalculations each time someone has to be teleported
- Correct teleport error msg when player is charming or using vehicle
- Internal changes in storage types
- Proper code for missing achievement lock type
- Better debug msgs
- Trying to get rid of "Player*" and "Group*" inside LFGMgr as much as possible (Step 1)
2012-10-18 09:15:10 +02:00
Spp
380db44583
Core/Utilities: Use generic templates with AddPct, ApplyPct and CalculatePct
2012-10-02 12:17:42 +02:00
Spp
8c5f011e79
Core/Achievements: Force all calls to AchievementMgr be done through Player functions (Remove GetAchievementMgr)
...
Note: No real use in 3.3.5 but will be used in 4.3.4
2012-09-18 14:29:53 +02:00
Vincent-Michael
637894da1a
Core/Spells: Fix typo (I need sleep)
2012-09-09 04:19:17 +02:00
Vincent-Michael
2317af8dd3
Core/Spells: Convert Gift of the Naaru in spell script
...
Closes #6545
2012-09-09 04:02:47 +02:00
Vincent-Michael
6f38fb1011
Core: Fix some code style
2012-09-07 02:21:38 +02:00
Vincent-Michael
5954011a90
Core/Spells: clean up some code and move to spell script. Closes #7195
2012-09-06 11:00:37 -04:00
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