Commit Graph

381 Commits

Author SHA1 Message Date
Geodar
2c441808f1 Core/Scripts: Fix Typo in 7121f015ed 2012-09-08 08:02:00 +02:00
Subv
7121f015ed Core/Scripts: Fixed a copy/paste mistake from previous commit 2012-09-07 18:31:19 -05:00
Subv
673ce30f38 Core/Spells: Fixed Improved Health Funnel damage reduction effect.
Author: Josh
closes #7275
2012-09-07 18:26:14 -05: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
Souler
5ee99a9412 Scripts/Spells: Fix Weapon Copy related auras.
Closes #3731
2012-08-30 11:50:07 +02: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
Vincent-Michael
7e2d007e0d Core/Spells: Fix 'Foam Sword Rack' mechanic 2012-08-27 19:57:26 +02: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
Faq
28c0874873 Core/Spells: Fixed Libram of Wracking. thnx Vincent-Michael
Closes #7094
2012-08-20 10:59:35 +02:00
Nay
081acfde53 Merge pull request #6520 from Vincent-Michael/shadowstep
Core/Spell: Fix not using Shadowstep while rooted
2012-08-09 11:40:26 -07:00
Spp
55ce180f28 Core/Logging: Add Asyncronous logging with Loggers ("What to log") and Appenders ("Where to log") system. Will allow to select to full log some parts of core while others are not even logged.
- Logging System is asyncronous to improve performance.
- Each msg and Logger has a Log Type and Log Level assigned. Each msg is assigned the Logger of same Log Type or "root" Logger is selected if there is no Logger configured for the given Log Type
- Loggers have a list of Appenders to send the msg to. The Msg in the Logger is not sent to Appenders if the msg LogLevel is lower than Logger LogLevel.
- There are three (at the moment) types of Appenders: Console, File or DB (this is WIP, not working ATM). Msg is not written to the resource if msg LogLevel is lower than Appender LogLevel.
- Appender and Console Log levels can be changed while server is active with command '.set loglevel (a/l) name level'

Explanation of use with Sample config:

Appender.Console.Type=1       (1 = Console)
Appender.Console.Level=2      (2 = Debug)

Appender.Server.Type=2        (2 = File)
Appender.Server.Level=3       (3 = Info)
Appender.Server.File=Server.log

Appender.SQL.Type=2           (2 = File)
Appender.SQL.Level=1          (1 = Trace)
Appender.SQL.File=sql.log

Appenders=Console Server      (NOTE: SQL has not been included here... that will make core ignore the config for "SQL" as it's not in this list)

Logger.root.Type=0            (0 = Default - if it's not created by config, server will create it with LogLevel = DISABLED)
Logger.root.Level=5           (5 = Error)
Logger.root.Appenders=Console

Logger.SQL.Type=26            (26 = SQL)
Logger.SQL.Level=3            (2 = Debug)
Logger.SQL.Appenders=Console Server SQL

Logger.SomeRandomName.Type=24 (24 = Guild)
Logger.SomeRandomName.Level=5 (5 = Error)
Loggers=root SQL SomeRandomName

* At loading Appender SQL will be ignored, as it's not present on "Appenders"

* sLog->outDebug(LOG_FILTER_GUILD, "Some log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomName is found but it's LogLevel = 5 and Msg LogLevel=2... Msg is not logged

* sLog->outError(LOG_FILTER_GUILD, "Some error log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomeName is found with proper LogLevel but Logger does not have any Appenders assigned to that logger... Msg is not logged

* sLog->outDebug(LOG_FILTER_SQL, "Some msg related to SQLs")
  - Msg is sent to Logger SQL (matches type), as it matches LogLevel the msg is sent to Appenders Console, Server and SQL
    - Appender Console has lower Log Level: Msg is logged to Console
    - Appender Server has higher Log Level: Msg is not logged to file
    - Appender SQL has lower Log Level: Msg is logged to file sql.log

* sLog->outDebug(LOG_FILTER_BATTLEGROUND, "Some msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). As Logger has higher LogLevel msg is not sent to any appender

* sLog->outError(LOG_FILTER_BATTLEGROUND, "Some error msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). Msg has lower LogLevel and is sent to Appender Console
    - Appender Console has lower LogLevel: Msg is logged to Console
2012-08-03 14:20:18 +02:00
Kaelima
6ae147aa80 Merge pull request #7065 from Vincent-Michael/PainAndSuffering
Core/Spells: Fix Pain and Suffering reduces damage
2012-08-01 22:56:51 -07:00
Kaelima
99d3918d34 Merge pull request #6800 from Vincent-Michael/cod
Core/Spells: Fix Curse of Doom (thx to Warpten / joschiwald for helping)
2012-08-01 22:56:30 -07:00
Spp
5a99dfad14 Warning fixes + compile fix after the merge 2012-07-30 10:07:26 +02:00
Jorge
b460c496e2 Merge pull request #7227 from Vincent-Michael/PCH
Core/Misc: Use proper headers to optimize compile
2012-07-30 00:02:03 -07:00
Vincent-Michael
634b3645d5 Core/Misc: Use proper headers to optimize compile 2012-07-30 05:38:40 +02:00
Nay
462b6ded19 Merge pull request #7113 from Vincent-Michael/IdolOfTheCryingWind
Core/Spell: Fix Idol of the Crying Wind calculation
2012-07-29 09:08:14 -07:00
Pesthuf
2f6583094d Core/Spells: Haunt should heal the Warlock when the target dies or the aura is reapplied. 2012-07-25 14:18:35 +02:00
Vincent-Michael
7c6c488908 Core/Spell: Fix Idol of the Crying Wind calculation 2012-07-17 00:08:17 +02:00
Faq
1fa0177bb0 Core/Spells - Idol of the Crying Wind;
+ Fixing typo;
2012-07-13 18:42:28 +03:00
Vincent-Michael
968a8e8ee8 Core/Spells: Fix Pain and Suffering reduces damage 2012-07-11 17:34:03 +02: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
Faq
3308809066 Correcting Black Ice bonus dmg for Scourge strike shadow part. Thnx Tibbi & Shauren 2012-06-30 21:27:09 +03:00
Shauren
e0997874f5 Core/SpellScripts: Changed OnUnitTargetSelect hook to OnObjectAreaTargetSelect, it will now work with WorldObject instead of only Units and call it even for empty target lists 2012-06-29 21:53:35 +02:00
Kandera
6e4da3367a Core/Spells: fix build and typo from previous commit 2012-06-29 13:45:14 -04:00
Elron103
8ba234e245 Scripts/Spells: Fix Deathknight ability Death Pact 48743 2012-06-29 18:45:18 +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
w1sht0l1v3
4a85def47e DB/SAI: Fix Quest 12828 (Ample Inspiration). 2012-06-26 00:45:07 +03:00
Vincent-Michael
ef4d9dd4ae Core/Spells:
* Fix bloodthirst Heal
* Move bloodthirst damage calculation in Spell script
* Fix some codestyle
2012-06-20 18:06:29 +02:00
Kandera
2affb39bc0 Core/Spells: fix bloodthirst. again. 2012-06-18 12:48:34 -04:00
Shauren
bd7299ac35 Scripts/Spells: Reverted part of 9d19be2ee5, fixes scaling mounts
Closes #6815.
2012-06-18 13:27:10 +02:00
QAston
ab0a8dc637 Merge pull request #6811 from Faq/6bd8a01aa5474b55dc8681e224d31b16a43a87bc
Scripts/Spells:
-Fix Death Knight T10 Tank 2P Bonus (Scourgelord set) 
-Correct the amount of dmg absorbed by Anti-magic
Author: @tibbi
2012-06-15 13:14:08 -07:00
Kandera
521bf5f64e Core/Spells: fix build error from previous commit. 2012-06-15 14:19:42 -04:00
Kandera
2ff2387aa5 Core/Spells: revert some of previous commit and fix up a few things. 2012-06-15 14:07:10 -04:00
Kandera
9d19be2ee5 Core/Spells: fix spell scripts from recent commit and cleanup scripts 2012-06-15 12:56:15 -04:00
Faq
6bd8a01aa5 ... 2012-06-15 17:21:34 +03:00
Faq
67a0e54bb9 Correct the amount of dmg absorbed by Anti-magic shell.tibbi 2012-06-15 01:29:52 +03:00
Faq
ac74853415 Adding enums 2012-06-15 01:21:02 +03:00
Faq
d77a8568b7 Fixing Death Knight T8 Melee 4P Bonus (darkruned set). tibbi 2012-06-14 22:36:56 +03:00
Vincent-Michael
c6dd149f1b Core/Spells: Fix Curse of Doom (thx to Warpten / joschiwald for helping) 2012-06-14 21:11:37 +02:00
QAston
aae45460ed Merge Pull Request #6744 'EmpoweredRenew'
Core/Spells: Fix Empowered Renew calculation
Closes #6744
2012-06-14 19:25:50 +02:00
QAston
e53b44b6ba Merge pull request #6491
Core/Spells: convert some spell effects to SpellScripts
Closes #6491
2012-06-14 19:12:03 +02:00
Vincent-Michael
62c64920f1 Core/Spells: Fix Empowered Renew calculation 2012-06-13 22:26:35 +02:00