Commit Graph

4796 Commits

Author SHA1 Message Date
Subv
1090f84ebf Merge pull request #5243 from Trista/master
Achievement: Volunteer's Work
2012-02-14 16:50:27 -08: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
Subv
45910d613f Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-02-14 18:21:23 -05:00
Subv
c53d722aa2 Core/Collision: Models with flag MOD_M2 (mostly trees, among some other objects) should not be taken into account for LoS checks, this check does not apply to gameobjects (yet)
closes #3495

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-02-14 18:19:40 -05: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
Go6o
c8d9e30d6e Volunteer's Work - fix by Vincent-Michael 2012-02-14 21:51:54 +02: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 <s.v.h21@hotmail.com>
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 <s.v.h21@hotmail.com>
2012-02-12 20:10:09 -05:00
Subv
06df126bd0 Core/Loading: Speedup on the creature loading code
Signed-off-by: Subv <s.v.h21@hotmail.com>
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 <s.v.h21@hotmail.com>
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 <s.v.h21@hotmail.com>
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 <s.v.h21@hotmail.com>
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 <s.v.h21@hotmail.com>
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
Shauren
05b18ca9ba Scripts/Icecrown Citadel: Attempt to fix Sindragosa spawning 2012-02-10 16:44:02 +01:00
Shauren
9155d21b64 Scripts/Icecrown Citadel: Fixed crash in spell_frostwarden_handler_order_whelp
Closes #5129
2012-02-10 16:40:02 +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
kaelima
5684f39d58 Core/Protocol: Remove useless ResetInstances call inside WorldSession::HandleResetInstancesOpcode. 2012-02-10 12:52:30 +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
kaelima
03b2717931 Core/Map:
- Fixed crash when a player was disconnected during a transfer to another map.
- Only call OnPlayerLeaveMap if player is removed from map. (Ty QAston)
2012-02-10 12:43:13 +01:00
Shauren
5251daf01a Core/Spells: Summoning players will now teleport them directly on summoner, not near him 2012-02-10 11:32:33 +01:00