Commit Graph

368 Commits

Author SHA1 Message Date
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
Kandera 0ddaeaddc8 Core/Pets: more updates for pets and add spell_pet.cpp to the cmakelist file 2012-06-13 12:39:56 -04:00
click 50bd43661c Core: Remove a few silly warnings here and there (and adjust a comment to allow System.cpp to show properly in the nano-editor) 2012-06-13 18:38:21 +02:00
Kandera 76a2d13239 Core/Pets: more updates for pet calculations. feedback would be nice! (nothing is applied to anything yet so this will not reflect ingame atm) 2012-06-12 12:18:49 -04:00
Kandera 5b8d3f8109 Core/Pets: more functionality for pet auras. thx to joshwhedon for the new functions. still have a lot to do! 2012-06-11 12:40:20 -04:00
Shauren 7d98f2ffc7 Core/Spells: Fixed WotF and PvP trinket shared cooldown 2012-06-09 13:09:49 +02:00
joschiwald 8ab6d578ce fix typos - i failed so hard :( 2012-06-08 22:25:33 +02:00
Kandera 8e8bf5c67d Core/Pets: one more update before i leave for the weekend! 2012-06-08 14:10:05 -04:00
Kandera 38424024e6 Core/Pets: more updates to spells for pet scaling. based on research and sniffs. (some spells are unk at this moment) 2012-06-08 14:05:17 -04:00
Kandera 69ea6b5d32 Core/Pets: base implementation for pet aura scaling system. not currently hooked into anything. (thx vincent-michael for the base work) 2012-06-08 13:08:38 -04:00
Kandera 69bf716c1b Core/Spells: set default multiplier for scourge strike bonus damage to 1. 2012-06-08 11:01:27 -04:00
Kandera 6107e48f8b Core/Spells: fix scourge strike extra damage. thanks to tibbi 2012-06-08 10:08:02 -04:00
joschiwald 7e454b26ac more updates 2012-06-03 02:35:00 +02:00
Kandera 99b23429db Core/Spells: fix damage from touch the nightmare for the caster and fix damage and healing for dream funnel. closes #6669 closes #6676 2012-06-01 10:43:36 -04:00