Commit Graph

21898 Commits

Author SHA1 Message Date
Shauren
1aed8daf9a Core/Spells: Implemented SPELL_ATTR1_DISMISS_PET
Closes #7372
2016-07-20 13:50:29 +02:00
Aokromes
006d89310b Core: updated creature type flags enum (#17128)
Core/Misc: Update CreatureTypeFlags enum according to TrinityCoreWiki
2016-07-20 13:47:25 +02:00
sirikfoll
712baeba27 Core/Unit Do not allow addition of threat to units in evade mode 2016-07-20 13:29:22 +02:00
treeston
1bd85c1a9b Conditions/ConditionMgr: Add a comment so MitchesD can go away. 2016-07-20 13:29:05 +02:00
Shauren
f11a9a31c2 Core/Containers: Warning fixes and RandomResizeList with predicate optimization 2016-07-20 13:28:41 +02:00
Alan Deutscher
fabc7f02dd Core/Spells Make certain spells (e.g. Mind Control) properly flag the caster for PvP (#17145)
* This issue was caused by PvP-flagging being done calculated after the target's flag was turned off by becoming a pet.
2016-07-20 13:22:13 +02:00
Shauren
0233ced55e Core/Auras: Implemented auras SPELL_AURA_PREVENT_DURABILITY_LOSS and SPELL_AURA_PREVENT_DURABILITY_LOSS_FROM_COMBAT
(cherry picked from commit 17118f4832)
2016-07-20 13:21:47 +02:00
Aokromes
218fe7ba24 Core/Spells: Perform proc roll after all conditions passed to only consume spellmods when the aura is allowed to proc in the first place 2016-07-20 13:16:27 +02:00
Shauren
5c6802d509 Core/Spells: Fixed flat SPELLMOD_DAMAGE_MULTIPLIER calculation
(cherry picked from commit 35ab476f16)
2016-07-20 13:04:59 +02:00
Aokromes
7fcaf84c49 Core/Spells: Fixed spell mod application order 2016-07-20 13:03:43 +02:00
ForesterDev
43e1534a7b improve error message 2016-07-20 12:57:45 +02:00
joschiwald
65184de143 Makes travis happy 2016-07-20 12:55:52 +02:00
joschiwald
1e092ee8e2 Scripts/Freya: removed obsolete code 2016-07-20 12:53:39 +02:00
Aokromes
11636faadf Core: define CREATURE_FAMILY_NONE to avoid magic numbers in code 2016-07-20 12:49:38 +02:00
vincent-michael
dadd81afe0 Core/Quests: Fixed issue reported by static analysis
Coverity defect ID: 1355241
2016-07-20 11:01:10 +02:00
mik1893
13c5e4be65 Core/Spells: Fix Blood Tap activation when Blood Rune is in cooldown as Death Rune (#17132) 2016-07-20 11:00:56 +02:00
mik1893
4f6c7158a1 Core/Unit: Pet shouldn't be notified for DOT damage on the owner (#17133)
- Fix by @MrSmite
- Closes #16894
2016-07-20 11:00:40 +02:00
r00ty-tc
d219b18c68 Core/Cinematic: Optimize cinematic loading
- Remove pointless cast string->char*->string
2016-07-20 10:59:53 +02:00
Aokromes
0db05c610c Coverity: Correct two static analysis catches
#1355242 - Uninitialized scalar field
 #1355240 Resource leak in object
2016-07-20 10:59:10 +02:00
treeston
330167da7a Seriously, who doesn't support std::string instead of char* in 2016? 2016-07-20 10:49:52 +02:00
treeston
7279304c7c Add a LOG_WARN when attempting to summon a non-existing summon group. 2016-07-20 10:49:36 +02:00
treeston
ee10877d52 Allow BossAI::_DespawnAtEvade to work on creatures other than the boss itself (optional argument). 2016-07-20 10:48:44 +02:00
treeston
ef80fbd6c0 Core/Scripts: Added reasonable default params to GetCreatureListWithEntryInGrid/GetGameObjectListWithEntryInGrid for ease of use. Also, entry = 0 means no filter now, since we lacked an easy way to get a list of all creatures in grid. 2016-07-20 10:48:23 +02:00
treeston
334a705860 This discussion is more effort than it takes to change it. 2016-07-20 10:47:32 +02:00
treeston
221201dd3f Core/AI: Add DoCastSelf helper.
(I have no idea why I never bothered to do this before, really. It had crossed my mind a few times.)
2016-07-20 10:47:14 +02:00
treeston
35596cee5c Too many damn stars in that damn argument list. 2016-07-20 10:46:50 +02:00
Aokromes
d3dae41ded Core/Movement: Fix issues where creatures cancel spell casts chasing target and Implement SPELL_ATTR5_CAN_CHANNEL_WHEN_MOVING 2016-07-20 10:46:07 +02:00
treeston
dbd1d58f9d Creature/CreatureAI:
- Default range for DoZoneInCombat: 50.0f -> 250.0f.
- Add optional second arg to SummonList::DoZoneInCombat to specify range.
- Also a bunch of random NULL -> nullptr cleanup.
2016-07-20 10:39:10 +02:00
Shauren
0bf6e30f44 Build fix 2016-07-20 10:30:36 +02:00
Shauren
a4498c7cab Core/Auras: Renamed fields of SpellProcEntry structure and change types to more appropriate ones 2016-07-20 10:25:03 +02:00
Aokromes
817eb007db Compile fix 2016-07-19 19:01:13 +02:00
Aokromes
78c2b11747 Core/Movement: Implement 3 missing opcodes
From wowsource.
2016-07-19 18:51:50 +02:00
Aokromes
551990fb4c Compile fix, partialy revert a3ca833d0d need help to port
dc3327f9c5
2016-07-19 18:09:05 +02:00
Aokromes
41b26981bb Core/Spells: Fix wrong totem placement 2016-07-19 17:50:53 +02:00
Aokromes
cd9acb7d05 Core/Spells: Fixed overwriting summon requests 2016-07-19 17:15:06 +02:00
Aokromes
a3ca833d0d Core/Scripts: Cleanup cs_modify.cpp
* Removed a chunk of duplicate code
* Generalized Message notification
* Generalized checking of resources modification with a min-max
* Generalized checking of single value modification
2016-07-19 17:01:15 +02:00
Aokromes
6e68a60e6d Core/Unit: Do not remove auras from Pets and Guardians after evading 2016-07-19 16:21:41 +02:00
Aokromes
28a7ce2007 Core/Spell: Magic Absorption Calculation 2016-07-19 16:16:53 +02:00
Aokromes
0c5007efe9 Core/Misc: Fix issues reported by static analysis 2016-07-19 16:11:21 +02:00
Aokromes
5d835e4526 Core/SmartScripts: Improve SMART_EVENT_DISTANCE_CREATURE so it can be used with SMART_TARGET_ACTION_INVOKER 2016-07-19 16:05:20 +02:00
Aokromes
1a1a33d0f0 Core/PacketIO: Missing changes from 548aa11 that could result in a crash due to double Locking (#17008)
Socket will be closed because of ReadDataHandlerResult::Error.
2016-07-19 15:58:23 +02:00
DDuarte
c47ec46ebc Scripts: Add missing override 2016-07-19 15:55:11 +02:00
Gacko
bba08ed29c Scripts: Add missing overrides.
(cherry picked from commit aac868a6d9)
2016-07-19 15:54:54 +02:00
Aokromes
6ca223187b Compile fix 2016-07-19 15:46:44 +02:00
Aokromes
a65ac56b74 Core/Entities: Ported byte field offset naming from 6.x 2016-07-19 15:08:35 +02:00
Naios
29eed2c20f Core/Scripts: Move the ragefire chasm scriptloader into the correct file
(cherry picked from commit 4710b1c8fe)
2016-07-19 14:18:42 +02:00
Naios
74a588b462 Core/Misc: Replace tc's optional with boost::optional. (very partial cherry-pick)
* benefits from empty optimization (objects are only constructed if needed).
* supports r-value references (move semantics) (boost >= 1.56.0).
* preparation for c++14/17's std::optional and std::none_t.
* add move constructor to CompactArray.

(cherry picked from commit 800d5d8939)
2016-07-19 13:37:37 +02:00
Aokromes
a71da1c603 Entities/Unit: Finally fix no-path evasion.
- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.
- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.
- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.
2016-07-19 13:33:04 +02:00
Aokromes
cf47ef8be0 Build Fix 2016-07-19 13:04:50 +02:00
Aokromes
f5de65fd96 Core/Misc: MSVC /W4 warning fixes 2016-07-19 13:02:54 +02:00