Commit Graph
4087 Commits
Author SHA1 Message Date
leak ba4d1c36f1 Core/Maps: Remove redundant if() 2012-02-16 16:17:56 +01:00
Spp 03c34ee507 Fix a lot of warnings 2012-02-16 13:56:28 +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
kaelima d336c9efc5 Core/Movement: Fix a crash when a player logout in a hostile area. The honorless spell should and is already casted after recieving CMSG_MOVE_SPLINE_DONE.
Closes #5245

- Also corrected an error message in auctionhousemgr.
2012-02-16 11:11:29 +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
leak 1b506c18ee Core/Spells: Remove pointless check 2012-02-15 17:06:31 +01:00
Subv bfbf118e7e Fixed a typo 2012-02-14 20:43:44 -05:00
Subv 6119254fce Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-02-14 20:12:49 -05:00
Subv 15a2acfb52 Core/AuctionHouse: Updated CMSG_AUCTION_SELL_ITEM to allow new 3.3.5a features.
Patch by Kiddie.
closes #2970
2012-02-14 20:12:23 -05:00
Shauren 65d269f6de Core/Spells: Allow dead players as valid objects for RaiseDeadObjectCheck (enables Raise Dead on players that have not yet released spirit)
TODO: Allow all corpses
2012-02-15 00:46:08 +01:00
Manuel Carrasco 60adf066d9 Core/Unit: Solved issues with neutral creatures that were being attacked when they should not be.
Thanks to Subv for the tweaks!
2012-02-14 17:51:28 -03:00
Subv 7d30b061f0 More compiler error fixes 2012-02-14 14:06:31 -05:00
Subv 104674e269 Fixed some remaining compile errors 2012-02-14 13:57:03 -05:00
Subv ded43242eb Fixed build 2012-02-14 13:53:33 -05:00
Subv f8df838db9 Fixed build, thanks Amit86 for noticing 2012-02-14 13:47:35 -05:00
Subv d55126aacb Core/Spells: Revert erroneous interruption added in 5ea49613d2 - more research required 2012-02-14 13:14:51 -05:00
Subv 12d0e88346 Core/Battlegrounds: Fix Ring of vallor pillar at arena start
author: @p0ody
2012-02-14 13:00:08 -05:00
Subv 8a72aede16 Codestyle: Renamed some variables to fit codestyle, corrected order in structure/class fields to match alignment (they use slightly less memory now)
Signed-off-by: Subv <[email protected]>
2012-02-14 12:46:26 -05:00
Kandera 3d9ff95177 fix issue with seasonal quests 2012-02-14 09:03:34 -05:00
Subv d790adefe0 Codestyle: Renamed some variables to fit codestyle
Signed-off-by: Subv <[email protected]>
2012-02-12 20:10:09 -05:00
Subv 06df126bd0 Core/Loading: Speedup on the creature loading code
Signed-off-by: Subv <[email protected]>
2012-02-12 17:34:41 -05:00
Subv 5ea49613d2 Core/Spells: Spell casts should be interrupted if the target goes out of LoS.
Signed-off-by: Subv <[email protected]>
2012-02-12 15:30:16 -05:00
Subv a7f6c4f558 Fixed the logic on my last commit 2012-02-12 08:41:59 -05:00
Subv b0bcf1f67c Core/Collision: Fixed LoS for doors with data0 = 0 and state = 0
closes #5197

Signed-off-by: Subv <[email protected]>
2012-02-11 21:47:00 -05:00
Subv d3a510957e Codestyle: Renamed some battleground variables and changed some other things to fit codestyle 2012-02-11 19:44:10 -05:00
Subv d0110dae9d Merge pull request #5193 from Souler/master
Dalaran Sewers Arena waterfall issue
2012-02-11 16:28:38 -08:00
Subv 0d77ae8fc1 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-02-11 19:23:40 -05:00
Subv ff9830c18d Core/Spells: Blink wont be able to trespass solid objects anymore (walls/doors)
Refactored some code

Signed-off-by: Subv <[email protected]>
2012-02-11 19:23:18 -05:00
Matthew Goff b0145e3b39 Core/Quests: Correct use of parenthesis in IsAutoComplete and IsAutoAccept
Closes #5195
2012-02-11 22:26:53 +00:00
Souler 491c25ddc5 Core/Arenas/Dalaran Sewers: Add warning before fully activating the waterfall 2012-02-11 21:08:26 +01:00
Pitcrawler 6bb7f15092 DB/NPCs: Remaining Grizzly Hills gossips
Scripts|SAI: Convert npc_kingdom_of_dalaran_quests to SAI
Closes #4845
2012-02-11 20:01:06 +00:00
Nay 605d3ffa52 Copy paste is bad, mkay? 2012-02-11 19:51:03 +00:00
Nay 5c62fd1d6a Core/Db/Conditions: Add conditions for world state and phasemask
CONDITION_WORLD_STATE - 11 - index - value - 0
CONDITION_PHASEMASK - 26 - value - 0 - 0
Idea by @LiMCrosS
2012-02-11 19:46:41 +00:00
Subv f3802488ff Core/Collision: Missing a negation operator in Ring of Valor 2012-02-11 14:28:25 -05:00
Subv 0e57de54fb Battleground/Collision: Fixed the DS waterfall and RV pillar glitches 2012-02-11 13:47:43 -05:00
Subv 231b849ac4 Fixed build 2012-02-11 11:05:37 -05:00
Subv 5d93b33f0f Fixed codestyle from last commit 2012-02-11 10:53:33 -05:00
Subv c5e2e189de Core/Conditions: Allow to set SAI conditions to both the invoker and the object using ConditionTarget column.
ConditionTarget 0 = invoker
ConditionTarget 1 = object

Signed-off-by: Subv <[email protected]>
2012-02-11 10:49:28 -05: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 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
Shocker 8c2526e7d0 Core/Misc: Avoid some redundant checks in Player::ResetTalents 2012-02-10 22:08:13 +02: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
Nay ed3e5d816a Core/Db/Conditions: CONDITION_NOITEM and CONDITION_NO_AURA became deprecated with NegativeCondition
Wiki updated.
2012-02-10 16:32:26 +00: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