Commit Graph

19310 Commits

Author SHA1 Message Date
Trisjdc
4615aa60a5 Core/Spells: Define and implement CAST_FLAG_NO_GCD 2014-06-15 14:49:03 +01:00
Vincent-Michael
1c80e441a0 Core: Fix non pch build 2014-06-14 23:33:20 +02:00
Discover-
dbc97c0fd3 Merge pull request #12280 from MitchesD/commands
Scripts/Commands: added option to show flags_extra (.npc info)
2014-06-14 23:17:39 +02:00
MitchesD
3a8b5179fa Scripts/Commands: added option to show flags_extra (.npc info) 2014-06-14 22:11:50 +02:00
Vincent-Michael
b7e0c2251e Core: Fix fail 2014-06-14 22:04:24 +02:00
Vincent-Michael
53caf7959e Core/Ulduar: Added IsInCombat check for ulduar teleporter 2014-06-14 22:01:50 +02:00
Vincent-Michael
69135ba056 Core: Fix build 2014-06-14 20:14:17 +02:00
Vincent-Michael
880253a833 Core/SAI: Fix typo in 2596f1f35d 2014-06-14 20:12:38 +02:00
Vincent-Michael
cd3977edf9 DB/Misc: Convert ulduar teleporter in sql 2014-06-14 20:03:55 +02:00
Vincent-Michael
2596f1f35d Core/SAI: Added SMART_ACTION_CAST support for gameobject cast 2014-06-14 19:55:55 +02:00
MitchesD
86b3298a47 Scripts/Misc: random fixes 2014-06-14 17:48:47 +02:00
Shauren
2d5b54a69d Replaced calls to ceilf (msvc extension) with ceil - fixes build 2014-06-14 17:27:28 +02:00
Shauren
08edc7d630 Core/Vehicles: Fixed power issues
* Regenerate powers only if vehicle has UNIT_FLAG2_REGENERATE_POWER
* Removed old pyrite power hack
* Apply creature_template.ManaMod to all power types

Closes #12141
2014-06-14 17:09:35 +02:00
Shauren
e9c9e36265 Scripts/Icecrown Citadel: Fixed possible crash in blood nova target selection 2014-06-14 11:48:07 +02:00
Ascathor
6949735098 Core/Misc:
* Fix some codestyle, fix some typos

* Change CMakeLists for: Custom (can be uncommented), Events, World
** Custom is theoretically unchanged. You can, however, uncomment the glob_recurse that initializes every file within. This might be easier for beginners.

* Introducing the IP Based Action Log System:
** On several different actions, e.g. Login, Character Login, etc., a new entry is added
** Can be logged on and off in worldserver config
*** Disabled by default to prevent increased log db size for unknowing users.

* Add a new row to account table called 'last_attempt_ip'
** Lists the last ip trying to connect to the account

* Add a new type of HookScripts: AccountScript
** Includes: OnAccountLogin, OnFailedAccountLogin, OnEmailChange, OnFailedChange, OnPasswordChange, OnFailedPasswordChange

* Added new Hook to PlayerScripts: OnFailedPlayerDelete

* Added new variables to PlayerScripts: OnPlayerDelete
2014-06-13 16:25:11 +02:00
Shauren
5804372042 Core/Transports: Fixed crash happening during teleporting transports
Closes #11793
2014-06-13 11:16:17 +02:00
Trisjdc
c75b7942a8 Core/Spells: Partially revert 4992c0290b, and further implement SPELL_ATTR3_NO_DONE_BONUS (which is the correct way of doing this) 2014-06-12 21:23:37 +01:00
Trisjdc
12b8bf037f Quick fixup for previous commit 2014-06-12 20:13:07 +01:00
Trisjdc
4992c0290b Core/Spells: Change haste benefit to cast time formulas, may need further correction
- With these changes, Paladin/Death Knight mount summons will no longer benefit from haste
2014-06-12 20:03:52 +01:00
Shauren
e55555ed8c Fixed windows nopch build 2014-06-11 23:08:32 +02:00
jackpoz
26a7916faf Core/Misc: Fix gcc build 2014-06-11 21:40:50 +02:00
jackpoz
d1d91d193d Merge commit 52c0fc96bb 2014-06-11 21:00:16 +02:00
Unholychick
52c0fc96bb Move pestilence to spellscripts
Fixes crash and warnings introduced in d4bbc26261
Fixes a bug that allowed dks to spread diseases using another dks diseases
Closes: https://github.com/TrinityCore/TrinityCore/issues/12245
2014-06-11 20:03:30 +02:00
Shauren
06962b16f1 Core/PacketIO: Fixed logic in DosProtection::EvaluateOpcode 2014-06-11 19:28:25 +02:00
Shauren
2ba05406ce Fixed typo, spotted by @Gooyeth 2014-06-11 18:21:00 +02:00
Aokromes
9f4bab55ed Merge pull request #12046 from phoenixfight/fishmaster
Core/Fishing: Repair fishing spell result fish escape
2014-06-11 17:32:49 +02:00
jackpoz
f19c6f4091 Core/PetAI: Fix memory leak
Fix memory leak added in e7f0808d46

Valgrind log:
395,712 (390,216 direct, 5,496 indirect) bytes in 229 blocks are definitely lost in loss record 65 of 67
 at operator new(unsigned long) (vg_replace_malloc.c:320)
 by PetAI::UpdateAI(unsigned int) (PetAI.cpp:167)
 by Creature::Update(unsigned int) (Creature.cpp:541)
 by TempSummon::Update(unsigned int) (TemporarySummon.cpp:47)
2014-06-10 22:50:24 +02:00
Trisjdc
48f426abc5 Core/Auras: Correct a typo that caused bad stacking of SPELL_AURA_MOD_MELEE_HASTE 2014-06-10 20:51:28 +01:00
Warpten
c9613e0005 Merge pull request #12233 from Trisjdc/aura_stacking
Core/Auras: Expanding functionality of SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT to be able to take care of aura effects inside their handlers
2014-06-10 12:23:57 +02:00
phoenixfight
ae46affe4e [core/database]Repair fishing spell result fish escape
edit fish junk sql formart

Optimized code, remove some useless brackets

fix default fish result ,just like Off the coast of Storm Peaks.

cleaned the sql part  thx Kinzcool

fix todo now
2014-06-10 11:07:15 +08:00
jackpoz
5ebf24281c Core/NetworkIO: Adjust more packet throttling values
Ignore some opcodes that don't cause any trouble.
Remove old Allow/Disable Anti-DoS system since it's no longer required.
2014-06-09 23:11:10 +02:00
Shauren
b5278ef160 Core/Vehicles: Fixed channeled spells being interrupted for passengers when vehicle moves 2014-06-09 23:11:09 +02:00
Trisjdc
b96b7c291a Core/Handlers: Move a couple of logs to debug, they can appear without anything abnormal due to client latency 2014-06-09 23:11:07 +02:00
Lucas
d1e2768450 Fix Warnings 2014-06-09 23:11:06 +02:00
jackpoz
bd4be27aeb Core/Calendar: Sanitize calendar event parameters
Prevent events added in the past which in some conditions would cause an infinite loop in the client.
2014-06-09 23:11:05 +02:00
jackpoz
3c8503bea7 Revert "Core/Calendar: Fix memory leak when malformed CMSG_CALENDAR_ADD_EVENT is received"
This partially reverts commit 51e38872c7.
The stack-initialized variable calendarEvent would have called CalendarMgr::FreeEventId() when it went out of scope, marking the current event id as free and allowing next event to overwrite current event.
This doesn't fix the memory leak issue which still needs to be addressed in a proper way.
2014-06-09 23:11:04 +02:00
Gacko
ecbf6fdd6c Script: Minor optimization in spell_unlocking_zuluheds_chains 2014-06-09 23:11:03 +02:00
Vincent-Michael
3be5178304 Core/Misc: Kill Whitespace ... 2014-06-09 23:10:59 +02:00
jackpoz
6dc76223fb Core/Banks: Fix some bank exploits
Re-implement the cheat checks removed in a12501fb5e and check if Player can interact with the Banker when handling bank-related opcodes.
2014-06-09 23:10:58 +02:00
Aokromes
6afd62a6bd Core/Database: Update log for incorrect db structure 2014-06-09 23:10:57 +02:00
Unholychick
b651789cb0 Core/Spells: Implement Periodic mechanics
Change behaviour of single target periodic aura ticks to be more blizzlike
Also add some missing handling of SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE
Fixes Deep wounds and Chimera Shot Serpent
Remove an ancient hack with Drain Soul, spell id 100001 can now be deleted from spell_dbc table
Allows Rolling dot mechanics and allows DK's to roll diseases with pestilence,
see link for info:

http://forums.elitistjerks.com/topic/82503-frost-dps-in-333this-will-be-a-day-long-remembered/page-88
2014-06-09 23:10:56 +02:00
Trisjdc
f80384a1f2 Core/Spells: Anti-Magic shell should give immunity to all spells that belong to SPELL_SCHOOL_MASK_MAGIC regardless of dispel type 2014-06-09 23:10:55 +02:00
aletuna
77c29e8feb Scripts/Blackrock Depths: Converted to eventmap+minor coding style changes
Closes #11730
2014-06-09 23:10:54 +02:00
Trisjdc
3aa5b01d4d Core/GOs: When unlinking Fishing Bobber from player to prevent despawning, unlink from spell as well to prevent removing unwanted auras 2014-06-09 23:10:53 +02:00
joschiwald
be518159bf Core/Spells: add missing spellradius to spell "Achievement Check" (fixes hor achievments) 2014-06-09 23:10:52 +02:00
Vincent-Michael
2897476517 Core: Fix non pch build 2014-06-09 23:10:50 +02:00
Michael
eac01c3f2a Core/NetworkIO: Added latency info for opcodes overflow log 2014-06-09 23:10:49 +02:00
Trisjdc
f14be42e0c Core/Utils: Move EventMap to Util.h 2014-06-09 23:10:48 +02:00
Trisjdc
78f1cbfba5 Scripts/Items: Imp in a Ball 2014-06-09 23:10:47 +02:00
Trisjdc
46c7524084 Core/Players: Improve quest item adding/removal checks, solves cases where quest item removal (under specific conditions) incorrectly incompletes quests 2014-06-09 23:10:46 +02:00