Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
cc06c41887
Core: Move FormationMgr to namespace
...
Also...
- Warning fixes
- Make Singleton constructors private
2011-09-28 11:11:38 +02:00
QAston
5f043e6291
Core/Spells: Bring back workaround removed in cd7060c65a - it's needed for compatibility with some scripts.
2011-09-27 22:04:26 +02:00
QAston
7fa2a64290
Merge branch 'master' of https://github.com/Chaplain/TrinityCore
2011-09-27 19:19:25 +02:00
QAston
23ba776767
Core/Entities: use Unit::GetReactionTo in Unit::IsFriendlyTo and Unit::IsHostileTo
2011-09-27 01:29:20 +02:00
QAston
75aeb15e90
Core/Spells: Allow AOE spells to hit stealthed targets.
2011-09-27 01:13:32 +02:00
Machiavelli
f4ec95c752
Fixed a typo in pull request. (Edit via Github)
2011-09-26 21:05:16 +03:00
Cron
8622bedeac
Core/Spells: Fixed glyph of Fire Blast.
2011-09-25 15:53:31 -03:00
Chaplain
224bb96deb
Core/Spells: Fix talent Sword Specialization.
2011-09-25 16:42:12 +03:00
Chaplain
877579d386
Revert "Core/Spells: Fix talent Sword Specialization for melee abilities"
...
This reverts commit cdd4160157 .
2011-09-25 14:20:41 +03:00
Shauren
da0229da8f
Core/Scripts: Implemented 2 new target selectors, one specialized for spells, checking auras, range and attributes; and the other is a very simple non-tank selection what is sufficient for most cases
2011-09-24 19:40:57 +02:00
QAston
cd7060c65a
Core/Spells: Add more generic overload for Unit::CastSpell function and make all cast functions use it as a base.
2011-09-24 16:41:50 +02:00
QAston
29fef71137
Merge pull request #2915 from idostyle/armorPen
...
Core/Mechanics: Cap armorPen to maxArmorPen - prevents having armor penetration rating greater than 100%.
2011-09-22 02:03:14 -07:00
QAston
8c2e58d036
Core/Entities: Allow 2 side parties to work.
2011-09-17 13:45:07 +02:00
QAston
a2d9aabbb3
Core/Entities: Allow creatures to attack players while in sanctuary.
2011-09-17 01:50:53 +02:00
QAston
580264b5a5
Core/Entities: Remove obsolete function Unit::canAttack.
2011-09-16 23:51:01 +02:00
QAston
c0b1823524
Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget
2011-09-16 23:49:31 +02:00
QAston
3a3f2d927f
Core/Misc: Whitespace and a minor typo fix (thanks Kapoeira)
2011-09-16 22:37:49 +02:00
QAston
31e755c291
Core/Entities: Add Unit::IsValidAssistTarget and Unit::IsValidAttackTarget functions for proper serverside checks of related entity flags.
2011-09-16 22:17:48 +02:00
Shocker
7afb179185
Misc/Util: Add a template function for returning a random element from any container
2011-09-15 21:28:40 +03:00
QAston
e07535c3e3
Core/Entities: Add new functions: Unit::GetReactionTo and Unit::GetFactionReactionTo for more direct reaction checks than Unit::IsFriendly/HostileTo (those functions have many duplicated code and have many checks unrelated to unit reaction).
2011-09-15 17:44:03 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
QAston
606fd07cb1
Merge pull request #2966 from Chaplain/cleanup
...
Core/Auras: Improvements in SPELL_AURA_MOD_DAMAGE_PERCENT_DONE handling:
2011-09-11 13:29:50 -07:00
QAston
06b9ae6e11
Core/Unit: Define UNIT_FLAG_UNK_0 as UNIT_FLAG_SERVER_CONTROLLED and remove related redundant creature_template data.
2011-09-11 11:41:55 +02:00
Chaplain
cd06a696cf
Core/Auras: Improvements in SPELL_AURA_MOD_DAMAGE_PERCENT_DONE handling:
...
*prevent apply mods from weapon specific case to non weapon specific spells
2011-09-11 00:27:40 +03:00
Chaplain
dcc3b2e341
Core/Mechanic: Remove unneeded(now) argument.
2011-09-07 11:04:20 +03:00
Chaplain
c190326de4
Core/Mechanic: Implement Diminishing Returns for miss\parry\dodge. Original author for parry\dodge case Lynx3d.
...
fixes : #2339 , #2536 , #887 , #687 etc.
2011-09-06 18:43:55 +03:00
Chaplain
207f598a20
Core/Auras: Fixed applying SPELL_AURA_MOD_DAMAGE_PERCENT_DONE for spellBonusData
...
fixed #2834
2011-09-06 12:05:36 +03:00
idostyle@zoit
63318f009e
Core/Mechanics: Cap armorPen to maxArmorPen
2011-09-05 15:36:48 +02:00
Spp-
3fac9914be
Core: Code cleanup (here and there)
2011-09-05 14:01:50 +02:00
hacknowledge
9d85446e30
Core/Spells: Fixed misdirection ability of hunters to end 4 seconds after first damage proc - fixes #114
2011-09-03 18:26:39 +02:00
sarjuuk
b40bf69319
[Core/Threat] SpellThreat-Calculation revamped
...
short:
- Threat is now distributed blizzlike (almost)
long:
- Percent- and AP-Modifieres got add
- Threat is now propperly distributed through multiple enemies
- Most spells will cause initial threat in an amount equal to their SpellLevel
- Energize-Effects will now be treated like healing (threat-wise)
- Tanks got their missing +43% passive threat tacked on
- Paladins are still missing 'Salvation' and will not only cause half threat with healing (essentially 25% of the amount healed)
2011-09-03 17:42:44 +02:00
QAston
ac9701afa7
Merge pull request #2762 from Kapoeira/master
...
Core/Spells: Prevent deterrance from parrying spells that require the attacker to be behind the hunter, like Shred or Ambush.
2011-08-31 11:24:45 -07:00
Kapoeira
5d0a2b6094
Core/Spells: Fix Aspect of the Beast
...
Closes #462
Closes #2814
2011-08-30 20:24:36 +07:00
Spp-
aa85553bfd
Core: Crash fix (TemporarySummon), remove some warnings and some other minor changes
...
- "const uint64" and "uint64 const" --> uint64
- Add some info in LFGDungeonEntry
- Move some definitions from ".h" files and move to ".cpp"
2011-08-30 13:46:36 +02:00
Shauren
240534ba2f
Scripts/Icecrown Citadel: Removed crashing script for Expunged Gas and moved it to where it belongs - proc system
2011-08-29 13:17:08 +02:00
Shauren
8c707a13de
Core/Objects: Changed how update fields changes are identified, no longer storing old value to compare with new. Instead fields are now simply marked if changed. This means that even if a field changes back to its original value, packet will be sent anyway (client expects it for some fields like shapeshift)
2011-08-28 18:31:37 +02:00
Cron
04d1bdf69c
Core/Spells: Prevent deterrance from parrying spells that require the attacker to be behind the hunter, like Shred or Ambush.
2011-08-26 10:33:41 -03:00
QAston
2ee88d76da
Core/Spells: remove one obsolete spell proc target check.
2011-08-26 12:48:12 +02:00
QAston
8e392440cf
Core/Spells: Fix a regression of 7f30ac5a95 - spells with TARGET_SELECT_CATEGORY_CHANNEL target type (like mind sear) should be triggered by triggering spell caster
2011-08-26 12:39:50 +02:00
Spp-
85164d2876
Core: Some cosmetic changes and minor optimizations
2011-08-26 09:41:33 +02:00
QAston
c0f3122b9c
Fix build after revert.
2011-08-25 08:01:56 +02:00
QAston
62d913bb35
Revert "Core/Spells: Also Death Runes itself should be able to turn into a Death Rune. They should not turn back into their original rune when using a spell that turns the used runes into Death Runes." - it is causing crashes.
...
This reverts commit 17b89ea8ab .
2011-08-25 06:40:56 +02:00
QAston
b69330676d
Merge pull request #2588 from hacknowledge/fix_2488
...
Crashfix. Added missing check for NULL of victim parameter
2011-08-24 10:02:26 -07:00
QAston
0365feb069
Core/Entities: Make dead units not targetable for attack again (after fc5e924138).
2011-08-23 14:47:26 +02:00
QAston
8e8fa083b2
Merge pull request #2636 from LihO/master
...
Core/Auras: Check amount of total ticks to avoid division by zero (and crash) in Unit::GetRemainingPeriodicAmount.
2011-08-21 00:58:55 -07:00
QAston
a10eb53598
Merge pull request #2672 from Chaplain/master
...
Core/Spell: case TOTAL_PCT\BASE_PCT should be processed by multiplicative function not additive.
2011-08-21 00:54:14 -07:00
Chaplain
4b56226619
Core/Spell: case TOTAL_PCT\BASE_PCT should be processed by multiplicative function not additive.
...
Also get ride of hack in Player::HandleBaseModValue now it's unnecessary.
Fixes : #855 , multiplicative % count for normal school for aura 79 and may be others.
2011-08-20 13:38:20 +03:00
QAston
b838aad7d0
Core/Spells: check UNIT_FLAG_OOC_NOT_ATTACKABLE only for AOE spells targeting enemies, fixes some interactions with npcs.
2011-08-20 12:08:37 +02:00
QAston
e2d8faea09
Core/Spells: move Cannibalize and Carrion Feeder cast checks to SpellScripts.
2011-08-20 00:30:38 +02:00