100 Commits
Author SHA1 Message Date
QAston 57e78dac6b Merge pull request #11853 from Unholychick/patch-2
Done & taken procs & a few trinket fixes
2014-04-17 18:18:02 +02:00
QAston 9495194bf2 Fix warnings introduced on littleendian in 2134cb610d
This fix prevents possible issues on bigendian machines. Don't use c style casts ppl, it's evul.
2014-01-30 23:43:37 +01:00
QAston 139ee0c8b7 Fix incorrect debug log in authserver 2014-01-26 22:04:45 +01:00
QAston 2134cb610d Remove unneeded bigendian checks (they're already part of EndianConvert). 2014-01-26 21:32:07 +01:00
QAston dedeb5f9eb Fix build with gcc. Thanks to McBitter for testing. 2013-08-19 14:52:17 +02:00
QAston 0513d9c8d0 Core: Fix warnings. Make callback symbols local. 2013-08-18 20:30:38 +02:00
QAston 19343ddd55 Fix crashed caused by using openssl from multiple threads simultanously.
Note that this doesn't make BigNumber class threadsafe - it never was that way.
2013-08-18 17:44:04 +02:00
QAston 2a3370929d Fix BigNumber::AsByteArray function by returning Auto_Ptr.
Remove mutex from BigNumber class - it didn't do what it was advertised to do - consider using the "locked" array outside of the function in which it was "locked".
2013-08-18 17:44:03 +02:00
QAston 8160633e12 Core: Fix a bug in BigNumber::SetBinary 2013-08-18 17:44:02 +02:00
QAston 10fb50ad66 Core: Fix a bug in BigNumber::SetQword 2013-08-18 17:44:02 +02:00
QAston f32fa5464c Merge pull request #9357 from WyldePointer/patch-1
Remove extra ';' from SQLOperation class.
2013-03-06 13:14:49 -08:00
QAston 26cbf5f6ba Core/Entities: nullify m_uint32Values after object deletion for better detection of access to deleted objects. 2013-03-04 16:31:24 +01:00
QAston 344eb8e31c Merge remote-tracking branch 'origin/refactoring' 2013-03-04 15:58:33 +01:00
QAston 4eec72c986 Core/Entities: Move complex function implementations from Player.h to Player.cpp 2013-03-04 15:56:00 +01:00
QAston 8012feee16 Fix build. 2013-03-04 13:00:02 +01:00
QAston 9fd6b7ee01 Core/Entities: Move complex function implementations from Creature.h to Creature.cpp 2013-03-04 12:41:17 +01:00
QAston 3439084082 Move complex functions from Object.h to Object.cpp 2013-03-04 11:45:57 +01:00
QAston 2e96f8192c Move complex functions from Unit.h to Unit.cpp 2013-03-04 09:38:38 +01:00
QAston e097994b23 Merge pull request #9299 from Ascathor/master
Few documentation changes
2013-02-28 02:24:19 -08:00
QAston 6403e3fbfe Core/SpellsMgr: remove unneeded functions from spellmgr, add some const modifiers for methods 2013-02-26 11:05:10 +01:00
QAston e49e470787 Merge pull request #9165 from Phantons/spellFixes
Core/Spells: spell implicit targets fix
2013-02-25 23:08:44 -08:00
QAston a6df8b9e10 Merge pull request #9301 from horn/summons
Core/Summons: Pack the TempSummonGroupKey structure so it is being compared correctly and make the second parameter of SummonCreatureGroup() optional
2013-02-25 22:24:05 -08:00
QAston ca19852510 Merge pull request #9193 from drskull/master
Core: Fix Feral Spirit attack speed and update attack power
2013-02-25 08:21:35 -08:00
QAston 9fbbcb5371 Merge pull request #9230 from FH3095/IsSingleTargetWith
Replace check in IsSingleTargetWith
2013-02-25 08:17:53 -08:00
QAston c6d6cb7e74 Merge pull request #9062 from Chaplain/origin
Core/Spells: Rename wrong spell attribute
2013-02-25 07:52:37 -08:00
QAston 6e55e3f352 Merge pull request #9260 from ille/randomtypos03
Core/Conditions: add missing break
2013-02-25 07:49:33 -08:00
QAston 469c7a0955 Core/Scripts: fix a crash from e0997874f5 2012-06-30 10:43:34 +02:00
QAston 799b2c146b Merge pull request #6962 from Elron103/pull-requests
Core/Spells: Fix spell casting time reduce / increase effects for creatures
2012-06-28 22:37:43 -07:00
QAston 8907388059 Merge pull request #6867 from Vincent-Michael/listCommand
Core/Commands: Convert list commands in commandscript
2012-06-21 10:25:33 -07:00
QAston 98479c4555 Merge pull request #6882 from Vincent-Michael/cleanUp
Core/Commands: Fix some codestyle for a312cd4ba1
2012-06-21 09:52:05 -07:00
QAston c22988e14f Merge pull request #6872 from Elron103/pull-requests
Scripts/Miscellaneous: Enable const-ness for various functions in ScriptedAI (Author: DorianGrey)
2012-06-20 23:18:58 -07:00
QAston a05752582b Merge pull request #6837 from Vincent-Michael/castCommand
Core/Commands: Convert cast commands in commandscript
2012-06-19 19:12:48 -07:00
QAston 28faf41471 Merge pull request #6853 from Elron103/pull-requests
Core/Movement: Implement speed changes for PointMovementGenerator
2012-06-19 19:12:03 -07:00
QAston f90f5b6fb7 Merge pull request #6832 from Xees/master
Scripts/Commands: Update TeleDel command to support id, shift click, or name of teleport location.
2012-06-17 19:33:21 -07:00
QAston c98a48d778 Merge pull request #6698 from 4m1g0/cleanup1
Scripts/Codestyle: Use proper headers, code style and cleanup (Blackfathom Deeps, Maraudon and Onyxias Lair)
2012-06-17 19:11:05 -07:00
QAston 6d85b7c525 Merge pull request #6798 from Vincent-Michael/instanceCommand
Scripts/Commands: Convert instance commands in commandscript
2012-06-17 19:08:57 -07:00
QAston a9b6a0c103 Merge pull request #6827 from drskull/master
Core/Spells: Small fix IsImmunedToSpell
2012-06-17 15:20:38 -07:00
QAston 33873cc37c Merge pull request #6820 from Elron103/pull-requests
Core/Combat: Fix CanAIAttack implementation
2012-06-17 03:20:44 -07:00
QAston 14430c5884 Merge pull request #6826 from Elron103/pull-requests2
Core/Entities: Fix possible overflows in health calculation functions
2012-06-17 03:19:46 -07: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
QAston aae45460ed Merge Pull Request #6744 'EmpoweredRenew'
Core/Spells: Fix Empowered Renew calculation
Closes #6744
2012-06-14 19:25:50 +02:00
QAston 968c5b9fd5 Merge branch 'master' of github.com:TrinityCore/TrinityCore 2012-06-14 19:12:45 +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
QAston 08802b2df3 Merge pull request #6315 'corrections'
DB/Spells: bonus data corrections
Closes #6315
2012-06-14 13:59:36 +02:00
QAston ea254ee954 Db/Spells: Merge branch 'remover'
Closes #6317
2012-06-14 13:50:35 +02:00
QAston 6c8fca7e25 DB/Spells: Fix spell Surge of Adrenaline 2012-06-14 13:13:04 +02:00
QAston 56c3811365 Merge pull request #6685 from mweinelt/master
Core/Battlegrounds: Introduce Arena.RatedUpdateTimer to configure time between checks for matchups in rated arena
2012-06-14 03:26:30 -07:00
QAston d4cc56328e Merge pull request #6792 from drskull/master
Core/Spells: Fix Magnet Takecharges
2012-06-14 03:06:09 -07:00
QAston 0d09774984 Merge pull request #6568 from Chaplain/typofix
Core/MapManager: Fix logic in SetMapUpdateInterval()
2012-06-04 00:44:06 -07:00
QAston dfcc94e6c3 Merge pull request #6565 from Vincent-Michael/EffectHealMaxHealth
Core/Spell: Fix spell effect SPELL_EFFECT_HEAL_MAX_HEALTH calculation
2012-05-27 06:48:18 -07:00
QAston e5268ba0b5 Merge pull request #6502 from Vincent-Michael/SPELL_DAMAGE_CLASS_NONE
Core/Spell: Fix some problems with spells calculation
2012-05-13 07:52:14 -07:00
QAston 2459305c76 Merge pull request #6499 from joschiwald/dmg_mods
Core/Spells: fix damage mods from caster on target
2012-05-12 03:48:52 -07:00
QAston 24308cc80a Merge pull request #6494 from Chaplain/spells
Clean up for 58f63509cd
2012-05-11 03:58:05 -07:00
QAston 58f63509cd Merge pull request #6314 from Chaplain/spells
Core/Spells: Separation of caster/target part damage/heal bonus calculation.
2012-05-09 15:10:33 -07:00
QAston b53485e053 Fix build and correct minor codestyle issue. 2012-04-28 15:10:52 +02:00
QAston b899f5fc94 Core/SpellScripts: rename GetTarget*() functions to GetExplTarget*(), so the names reflect better what those functions do. Also update some comments. 2012-04-28 14:55:14 +02:00
QAston 4b5e763d21 Merge pull request #6368 from Vincent-Michael/disengage
Core/Spell: Fix not using Disengage while rooted
2012-04-28 04:57:45 -07:00
QAston 06923e21e8 Merge pull request #6239 from The-Game/master
Core/Spell: Fix unit tracking to not being limited to the caster of SPELL_AURA_MOD_STALKED.
2012-04-28 04:56:58 -07:00
QAston a08fe16d69 Core/Spells: Allow spell effects to have multiple destinations. Spells like: 49814, 10869 and similar are now properly selecting destination targets. 2012-03-03 00:19:48 +01:00
QAston e1b544d129 Core/Spells: Remove some obsolete code 2012-03-02 17:57:26 +01:00
QAston dc55d9ed13 Fix sql update in 8653016bdd - thanks to RedSonja 2012-02-27 21:07:59 +01:00
QAston 8653016bdd Merge pull request #5445 from Souler/fix_demonic_circle
Move Demonic Circle related code to spell_warlock.cpp
2012-02-27 07:15:39 -08:00
QAston a0de042efe Core/Spells: Remove SpellSelectTargetTypes enum - it's not needed anymore. 2012-02-25 14:07:07 +01:00
QAston b7b37dca29 Core/Spells: send spell error messages on spell cast condition checks. 2012-02-25 11:54:12 +01:00
QAston ccbe209ded Merge pull request #5343 from kandera/fix_spell_script_stuff
fix a few issues with the spell scripts i made.
2012-02-23 09:35:10 -08:00
QAston 537bec239b Merge pull request #5389 from kandera/script_vessel
Core/Scripts: script despawn for dummy effect of muisek vessels
2012-02-23 09:31:05 -08:00
QAston fb5d05c198 Core/Spells: Prevent assertion failure in Spell::SelectImplicitDestDestTargets by setting dest to caster if no dest provided. 2012-02-22 21:06:29 +01:00
QAston 7a261ff9b8 Core/Spells: Use right function for obtaining spell target type. Fixes assertion failures. 2012-02-22 10:34:08 +01:00
QAston 2a1ffc1cd9 Core/Spells: Fix a typo in f09b5a6bea - call right function for target dest case.
Closes #5357
2012-02-22 10:21:02 +01:00
QAston 18948755ca Merge. 2012-02-21 20:17:45 +01:00
QAston f09b5a6bea Core/Db/Conditions:
-Drop condition CONDITION_SPELL_SCRIPT_TARGET, use other condition types instead
-Change CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET to CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET:
--allow using this condition for more spell implicit target types (not just ENTRY)
--SourceGroup value for this src type is now effMask and it's now required

Core/Spells: Unify the way implicit targets are handled, fully implement some partially implemented target types, fix some minor bugs found on the way, general improvements and cleanup.
2012-02-21 20:17:45 +01:00
QAston 9abc47736f Core/Spells: Changes in code related to spell explicit target redirection (cleanups, added target validation, prevent unexpected behaviour in some cases) 2012-02-19 00:40:55 +01:00
QAston e212116b1f Update file names after pull request merge. 2012-02-18 12:15:52 +01:00
QAston cd3ed111c9 Core/Spells: Fix recently broken feral spirit and force of nature. Closes #5278. 2012-02-17 11:45:21 +01:00
QAston 0d5ae5784c Core/Spells: Make channeled auras stackable by default with other auras. 2012-02-16 17:14:32 +01:00
QAston e47ec04b4d Core/Db/Conditions: Drop CONDITION_CREATURE_TARGET, CONDITION_TARGET_HEALTH_BELOW_PCT, CONDITION_TARGET_RANGE and 3rd parameter for CONDITION_AURA. Instead of those use other available conditions, which are not limited to player's selection only. 2012-02-16 13:16:43 +01:00
QAston ad6613261c Core/Db/Conditions: Drop usage of CONDITION_ITEM_TARGET and CONDITION_SOURCE_TYPE_ITEM_REQUIRED_TARGET and use CONDITION_SOURCE_TYPE_SPELL instead. 2012-02-16 12:09:09 +01:00
QAston 210fa7743d Scripts/Auras: fix spell_trash_mob_glacial_strike script, original patch by cemak.
Closes #5196.
2012-02-15 23:48:43 +01:00
QAston de706b3211 Core/Db/Conditions: Add new condition targets for:
- CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE ConditionTarget = 1 - check vehicle
- CONDITION_SOURCE_TYPE_VEHICLE_SPELL ConditionTarget = 1 - check vehicle
- CONDITION_SOURCE_TYPE_GOSSIP_MENU = 1 - check gossip provider
- CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION = 1 - check gossip provider
2012-02-15 22:13:27 +01:00
QAston 784d58c023 Core/Db/Conditions: Add new condition types:
- CONDITION_OBJECT_ENTRY
- CONDITION_TYPE_MASK
- CONDITION_RELATION_TO
- CONDITION_REACTION_TO
- CONDITION_DISTANCE_TO
- CONDITION_ALIVE
- CONDITION_HP_VAL
- CONDITION_HP_PCT
2012-02-11 15:17:33 +01:00
QAston 9d455c1e6f Fix build with GCC (it seems like it doesn't allow using references to temporary objects). 2012-02-11 00:15:05 +01:00
QAston b362377b35 Argh 2.0 2012-02-10 23:54:11 +01:00
QAston e337790c94 Argh. 2012-02-10 23:52:36 +01:00
QAston ce4a4ffe50 Core/Db/Conditions: Add ContidionTarget column which allows selection of objects which will be checked by condition, depending on SourceTypeOrReferenceId.
So far usable only with CONDITION_SOURCE_TYPE_SPELL:
ContidionTarget = 0 - check caster
ContidionTarget = 1 - check explicit target
2012-02-10 23:42:08 +01:00
QAston 46b9942f97 Core/Db/Conditions: remove ConditionValue2 parameter CONDITION_SPELL which was used for checking if player doesn't have spell and use NegativeCondition parameter instead. 2012-02-10 18:49:40 +01:00
QAston 586a76e3a0 Core/Db/Conditions: Add 3rd parameter to CONDITION_ITEM so it can now perform a check if item exists in bank aswell as in equipment. 2012-02-10 16:47:58 +01:00
QAston f2f1150761 Fixed build. 2012-02-10 15:43:19 +01:00
QAston 676151f6ac Core/Db/Conditions: Don't use ConditionValue3 as a reference id for template conditions - ConditionTypeOrReference serves this purpose. 2012-02-10 15:30:33 +01:00
QAston 8713b44ee7 Core/Db/Conditions: Prepare conditions system to work on objects of different type than players.
Warning: API has changed a bit:
ConditionScript::OnConditionCheck(Condition* condition, Player* player, Unit* invoker) is now
ConditionScript::OnConditionCheck(Condition* condition, WorldObject* object, WorldObject* invoker)
2012-02-10 14:18:59 +01:00
QAston e0ad0f0e8d Minor correction to a7fc2586e7 - load columns from db in the same order they're stored. 2012-02-10 12:54:34 +01:00
QAston a7fc2586e7 Core/Db/Conditions: Add NegativeCondition column to conditions table which allows to check whenever player does not meet condition specified by ConditionTypeOrReference column (ConditionTypeOrReference and ConditionValue3 set to reference id are not affected by the change) 2012-02-10 12:46:01 +01:00
QAston 5365bd25fa Core/Spells: remove some workarounds about transform spells in corpse explosion script. 2012-02-09 23:27:59 +01:00
QAston 800cf73750 Core/Spells: Fix some problems with spells summoning to many objects. 2012-02-09 20:27:26 +01:00
QAston 012be16796 Merge pull request #4726 from ille/baa2252bd31718e93ccc3e97aa81afeecb5ec9c3
Core/GameObject: implement stealth/invisibility for traps
2012-02-09 09:38:13 -08:00
QAston b4022acdf3 Core/Spell: move conditions check to Spell::CheckCast. 2012-02-09 18:35:52 +01:00
QAston 0b1da6c0ad Core/Db/Conditions: update error log. 2012-02-09 18:18:06 +01:00
QAston e0c699b0f3 Core/Db/Conditions: allow CONDITION_SOURCE_TYPE_ITEM_REQUIRED_TARGET to be used for spells with any spell using unit as explicit target instead of just TARGET_UNIT_TARGET_ANY and TARGET_UNIT_TARGET_ENEMY. 2012-02-09 18:12:47 +01:00
QAston dc326131a3 Core/Entities: don't save aura caster's guid for pets to db. 2012-02-09 17:19:24 +01:00
QAston a27758207f Merge pull request #5096 from devilcoredev/fix_005
Core/AI: Fix a bug on some pets introdouced in commit 14bc551862
2012-02-07 23:30:41 -08:00
QAston 84fa96efc6 Once again - a typo fix in 22bd06fc57 - rush is not the best advisor. 2012-02-05 09:18:39 +01:00