Commit Graph

237 Commits

Author SHA1 Message Date
pete318
97a074def2 Core/Spells: Support for targetting spells onto in flight units
* This adds support to spell_custom_attr to allow a spell to be cast
  upon a unit on a taxi/in flight.
* This will allow the Issue #11880 with Horde quest Test At Sea (11170) to be corrected.
* closes #14235

Signed-off-by: Naios <naios-dev@live.de>

(cherry picked from commit f9cba93985)
2015-06-04 13:38:53 +02:00
DDuarte
b8c681c776 Core: Fix multiple Coverity issues 2015-06-01 03:03:05 +01:00
et65
c6ab951025 Core/PacketsIO: Implemented or updated most of party related packets.
Packets updated or implemented :
- SMSG_INSTANCE_INFO : updated

- CMSG_SAVE_CUF_PROFILES : updated
- SMSG_LOAD_CUF_PROFILES : updated

- SMSG_PARTY_COMMAND_RESULT : updated

- CMSG_PARTY_INVITE : updated
- SMSG_PARTY_INVITE : updated
- CMSG_PARTY_INVITE_RESPONSE : updated
- CMSG_PARTY_UNINVITE : updated
- SMSG_GROUP_UNINVITE : updated
- CMSG_LEAVE_GROUP : updated
- SMSG_GROUP_DECLINE : updated

- SMSG_GROUP_DESTROYED : updated

- CMSG_MINIMAP_PING : updated
- SMSG_MINIMAP_PING : updated

- CMSG_CONVERT_RAID : updated
- CMSG_SET_EVERYONE_IS_ASSISTANT

- CMSG_DO_READY_CHECK : updated
- CMSG_READY_CHECK_RESPONSE : updated
- SMSG_READY_CHECK_COMPLETED : updated
- SMSG_READY_CHECK_RESPONSE : updated
- SMSG_READY_CHECK_STARTED : updated

- CMSG_REQUEST_PARTY_JOIN_UPDATES : implemented (source : sniffs)
- CMSG_REQUEST_PARTY_MEMBER_STATE : updated
- SMSG_PARTY_MEMBER_STATE : updated
- SMSG_PARTY_UPDATE : updated

- CMSG_REQUEST_RAID_INFO : updated

- CMSG_INITIATE_ROLE_POLL : updated
- SMSG_ROLE_POLL_INFORM : updated
- CMSG_SET_ROLE : updated
- SMSG_ROLE_CHANGED_INFORM : updated

- CMSG_CHANGE_SUB_GROUP : updated
- CMSG_SWAP_SUB_GROUPS : implemented

- CMSG_SET_ASSISTANT_LEADER : updated
- CMSG_SET_PARTY_LEADER : updated
- SMSG_GROUP_NEW_LEADER : updated

- CMSG_CLEAR_RAID_MARKER : implemented
- SMSG_RAID_MARKERS_CHANGED : implemented

- CMSG_UPDATE_RAID_TARGET : updated
- SMSG_SEND_RAID_TARGET_UPDATE_ALL : updated
- SMSG_SEND_RAID_TARGET_UPDATE_SINGLE : updated

- CMSG_OPT_OUT_OF_LOOT : updated
- CMSG_SET_LOOT_METHOD : updated

About group update flags:
- Not sure they are use for now.
- Pets now have their group update flags.
- Pets'power is no send to client anymore.
- Changes about them are inspired from SMSG_PARTY_MEMBER_STATS parsing of WowPacketParser, but it seems this packet is not use anymore.

CHAT_MSG_RAID has been fixed.

About Ready check:
- Correctly implemented this function.
- An update function has been added to Group class, and to GroupMgr class in order to manage the ready check expiration (when 35 seconds were gone, players who have not answered must be reported as AFK)

About Raid markers:
- Old spell effect SPELL_EFFECT_SUMMON_OBJECT_SLOT3 has been renamed to SPELL_EFFECT_CHANGE_RAID_MARKER and implemented. I'm sure about that because raid markers spells are the only spells that have this effect type.

Source: WowPacketParser, and sniffs from official.
2015-05-19 13:10:29 +02:00
Shauren
675a2fcd3b Core/Util: Fixed flag128 and removed flag96 - previously if flag128 and flag96 were used in together the result was always a bool instead of expected flag result due to implicit boolean conversion 2015-04-27 00:33:27 +02:00
DDuarte
86168ff142 Misc: SQL and small code changes for the 71 last cherry-picks 2015-04-14 01:03:57 +01:00
click
1c5a193aba Core: Follow codingstyle guidelines (CamelCase for functions, lowerCamel for vars and local stuff)
(cherry picked from commit adb39317fa)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Spells/SpellInfo.cpp
2015-04-14 01:02:16 +01:00
click
0192a602d6 Core/Spells: Allow non-skill-based flying mounts to be used in designated areas.
- Flying mounts that are not in the "SKILL_MOUNT"-tree and area-restricted can now be used properly (ex. 64749 - Loaned Gryphon).
- Remove isKnowHowFlyIn()-function (useless and deprecated since this is handled properly in the spellsystem).
Massive thanks to rat for extremely good help and support on fixing this (most of this is his work).
(cherry picked from commit 0e3607df5b)

Core/Spells: Reinstate helperfunction removed in commit 0e3607d (with a new functionname to make more sense out of it), and adjust the remaining code slightly to accomodate that.
(cherry picked from commit 6c1e4bc20d)
2015-04-14 01:02:08 +01:00
Rat
930b74d0ca Core/Spells: Spell radius calculation update 2015-03-23 07:42:50 +01:00
Shauren
14c5e67a89 Core/Spells: Fixed level value scaling for spells with scaling class < -1
Closes #14133
2015-03-09 00:50:09 +01:00
Shauren
0ba2e0d5ee Core/Spells: Implemented multiple spell power costs 2015-03-08 13:31:57 +01:00
Shauren
e63872e1ee Core/DataStores: Updated dbc structures to 6.1 2015-03-04 12:17:06 +01:00
Shauren
5c4fd7ac4f Core/DataStores: Added tables for all loaded DB2 stores 2015-02-22 10:29:12 +01:00
Shauren
474d299b0e Core/Auras: Implemented using Mount.db2 for selecting mount display id 2015-02-19 22:25:59 +01:00
joschiwald
d56d318c7f Core/Spells: fixed mem leak 2015-02-17 21:00:15 +01:00
Shauren
56186319bd Core/Spells: Cooldown updates
* Refactored cooldown handling to separate class shared by creatures and players
* Updated and enabled cooldown packets
* Implemented creature school lockouts
* Implemented spell charges
* Fixed AuraUpdate structure
* Fixed aura flag AFLAG_NOCASTER handling
* Implemented spell charge related auras
2015-02-17 01:01:44 +01:00
Shauren
3f28fd304d Core/Spells: Reimplemented automatic spell learning
* Fixed learning/unlearning talents
2015-01-30 23:58:16 +01:00
Shauren
faa583c784 Core/Maps: Updated map difficulties 2015-01-10 01:35:47 +01:00
Shocker
e99411e405 Core/Spells: Implement HasAttribute() helper for SpellInfo for easier readability 2015-01-05 23:49:43 +02:00
Vincent-Michael
ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
joschiwald
9ecc578cb1 Core/Scripts: multiple changes
- fixed non pch build
- fixed some warnings
- fixed some coverity issues
- some random things here and there
2014-12-29 01:00:16 +01:00
joschiwald
6c6e4d4328 Core/Packets: moved chat packet building function to packet builder class 2014-12-23 00:06:36 +01:00
Shauren
9f0051c4e5 Core/Spells: Implemented using dbc spellpower/ap coeffiecients for spells 2014-12-19 23:52:29 +01:00
Shauren
5f133e3e4d Core/Spells: Implemented varying damage for spells with no base value 2014-12-19 18:55:09 +01:00
Shauren
fedca01b4b Core/Spells: Updated base scaling value calculation 2014-12-14 16:14:08 +01:00
Shauren
25ff9daab1 Core/Spells: Optimized spell effect info loading 2014-12-14 16:11:33 +01:00
Shauren
edf5fc2236 Core/Spells: Fixed a crash in SpellInfo::GetEffect happening when the current difficulty did not have an overriding effect 2014-12-14 11:28:13 +01:00
Rat
16ff14e758 Merge branch 'Spells' of https://github.com/TrinityCore/TrinityCore into Spells 2014-12-08 15:33:16 +01:00
Intel
4825832c85 Merge branch '6.x' into Spells
Conflicts:
	src/server/game/DataStores/DBCStores.h
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Server/Protocol/Opcodes.cpp
	src/server/scripts/Spells/spell_druid.cpp
2014-12-07 23:20:52 +02:00
Rat
30e2e04c01 Core/Spells: some work on effects scaling 2014-12-07 10:11:47 +01:00
Shauren
1b0d296da1 Core/DataStores: Refactored "gt" dbc handling. Wrapped these stores in a new GameTable class which will calculate correct dbc entry index based on given row/column as well as read number of rows/columns from client files instead of hardcoded GT_MAX_LEVEL 2014-12-07 01:50:50 +01:00
Intel
60a6a8ba44 Core/Spells: Fixed spell powers initialization 2014-12-04 22:53:19 +02:00
Rat
16219b483d Core/Spells:
- some work on player starting spells and skills
- fixed basic spell learning
- fixed some spell related datastore loads
2014-12-01 20:44:06 +01:00
Rat
eda9094226 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into Spells 2014-11-29 14:52:53 +01:00
Rat
2144d6c851 Core/Spells: core now builds without scripts project, still not stable 2014-11-24 18:57:49 +01:00
Shocker
279615d2b8 Core/Spells: Small cleanup in SpellEffectInfo::CalcValue 2014-11-23 23:57:04 +02:00
Kinzcool
da5d0da724 Core/Spells: Made the loading of the orientation of SPELL_DEST_DB from SpellEffect.dbc 2014-11-21 17:29:08 -05:00
Rat
e9f9719af2 Core/Spells: spell system updates (no-compile-version_2) 2014-11-17 20:38:56 +01:00
Rat
588143b9b6 Core/Spells: Spell system updates (don't even try to compile this) 2014-11-16 14:20:01 +01:00
Rat
c375748b76 Core/DataStores: updated SpellPowerEntry 2014-11-15 16:04:57 +01:00
Intel
fa0983dfa3 Core/DataStores: Updated all remaining dbc/db2 except Item.db2, Item-sparse.db2
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2014-11-15 04:27:34 +00:00
Intel
b08b54c8bb Core/Packets: CMSG_CREATURE_QUERY and SMSG_CREATURE_QUERY_RESPONSE handler 2014-11-14 01:55:29 +00:00
Intel
24850994b4 Core/Talents: Update talent system, remove talent points 2014-11-10 21:09:18 +02:00
Intel
43d5fb5eae Core/DataStores: Updating spells dbc part 2 2014-11-10 02:51:55 +02:00
Intel
f847f55385 Core/DataStores: Updating spells dbc part 1 2014-11-09 23:53:48 +02:00
Intel
2a4f56107f Core/DataStores: Even more converted dbcs 2014-11-09 02:51:35 +02:00
Intel
3fe1ad51ba Core/DataStores: Updated AreaGroup.dbc and removed AreaPOI.dbc (Moved to db2 + wasn't used in core at all?) 2014-11-06 00:52:54 +02:00
Intel
e1cb43e831 Core/DataStores: Fixed build after rename 2014-11-05 23:33:56 +02:00
Nyeriah
26f0046ade Core/Spells: Prevent Divine Intervention from removing death persistent auras
Such as Dungeon Deserter, Resurrection Sickness, etc
Closes #11009

(cherry picked from commit fbcd180716)
2014-11-04 14:35:56 -02:00
DDuarte
5bf55eacfd Merge remote-tracking branch 'origin/3.3.5' into 4.3.4
Conflicts:
	sql/base/auth_database.sql
	src/server/game/Instances/InstanceScript.h
	src/server/scripts/Northrend/isle_of_conquest.cpp
	src/server/shared/Database/Implementation/LoginDatabase.cpp
	src/server/shared/Database/Implementation/LoginDatabase.h
2014-10-19 00:18:06 +01:00
mik1893
ef4043436b Core/Spells: Grounding Totem: - correctly magnet spells and dies - let missile spells fly on it and destroys all spells during the travel time of first one
Thx @amsjunior1

Closes #13147
Fixes #5611
2014-10-18 21:13:37 +01:00