Commit Graph
247 Commits
Author SHA1 Message Date
Zedron bd04a46011 Core/Spells: Fixed a mistake in SpellInfo::CalcPowerCost
Fixed a mistake which caused some SPELLMOD_COST modifiers to give (lots) of power instead of taking power in Spell::TakePower
2015-10-28 16:57:52 -05:00
Shauren 5e0cee85dd Core/Conditions: Type renaming 2015-10-25 10:59:58 +01:00
Shauren 191d2c7262 Core/Spells: Extended spell required shapeshift masks to 64 bits and defined a new spell attribute 2015-09-01 16:59:28 +02:00
David Carlos Manuelda e488470879 Core/Spell: Remove Rigor Mortis casting on DK creation and make Rigor Mortis spell be positive instead of negative by @Killyana and @killradio 2015-08-23 20:06:46 +02:00
Shauren a22e4e121a Core/Misc: Fixing warnings detected by Visual Studio 2015 compiler 2015-07-21 00:33:36 +02:00
Shauren f45ae7af43 Core/PacketIO: Updated spell packets 2015-07-18 00:45:21 +02:00
Shauren dea6c0b122 Core/DataStores: Updated dbc/db2 structures to 6.2.0 2015-07-07 12:13:14 +02:00
Shauren 585f978c58 Core: Started work on 6.2.0.20182 2015-07-01 02:22:03 +02:00
Shauren 6ae0162390 Core/Spells: Fixed spell effect selection depending on map difficulties 2015-06-25 00:20:25 +02:00
Shauren de486ebc2c Core/Spells: Fixed spell mana costs - percentage should be calculated using base mana, not total 2015-06-04 15:04:54 +02:00
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 <[email protected]>

(cherry picked from commit f9cba93985d79ae352a9e6371da1d580a119fb51)
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 adb39317fa78632c452cba1d3c9eeb31a5c3309a)

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 0e3607df5b6df0e85a458cbd37da124f7fa58825)

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 6c1e4bc20d68d9fb548eb4896bd8b84a4c3ec4ff)
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 <[email protected]>
2014-11-15 04:27:34 +00:00