Spp-
fa50c0a464
Fix some warnings here and there
2011-07-27 11:00:39 +02:00
QAston
b0fe236265
Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
...
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
tobmaps
a0f1a5c789
Core/Spells: Removed remaining part of old global cooldown handler
2011-07-23 03:30:43 +07:00
Shauren
74e2d981ac
Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair
2011-07-22 21:22:05 +02:00
Shauren
1e3c23a4e8
Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target
2011-07-15 12:33:03 +02:00
QAston
b9413f08b3
Core/Spells: Define and implement attributes SPELL_ATTR1_CANT_BE_REDIRECTED and SPELL_ATTR1_CANT_BE_REFLECTED, fixes some problems with Grounding Totem and Spell Reflection.
2011-07-13 20:14:55 +02:00
QAston
7b2cf3d1f2
Core/Spells: Fix a typo (thanks to tobmaps for catching)
2011-07-13 17:31:09 +02:00
QAston
20e8c25b48
Core/Spells: Define and implement attribute SPELL_ATTR3_CANT_TRIGGER_PROC, change names of some attributes to better describe their functionality.
2011-07-13 17:18:04 +02:00
QAston
1c7616dcc8
Core/Spells: Define and implement SPELL_ATTR3_IGNORE_RESURRECTION_TIMER - now you can instantly resurrect with Rebirth spell.
2011-07-12 10:43:58 +02:00
QAston
cd1df639b2
Core/Spells: Define and implement SPELL_ATTR2_CANT_TARGET_TAPPED attribute.
2011-07-12 07:34:42 +02:00
QAston
b253c844fc
Core/Spells: Add ability check in one more place, to prevent other kind of spell reflection.
2011-07-12 06:34:57 +02:00
Spp-
e3729950b9
Core: Rename GetDispellMask to GetDispelMask
2011-07-06 13:21:39 +02:00
QAston
2bf3bc334c
Core/Spells: define spell attributes: SPELL_ATTR1_MELEE_COMBAT_SPELL, SPELL_ATTR1_FARSIGHT, SPELL_ATTR1_DONT_DISPLAY_IN_AURA_BAR
2011-07-05 15:40:17 +02:00
QAston
3963d6eeb2
Typo in enum name, thanks Nayd for pointing this
2011-07-04 23:26:36 +02:00
QAston
0bc23239d8
Core/Spells: Remove some incorrect spell attribute checks and add custom attributes instead - it's better to know that there is no attribute for something than to pretend there's one and do ridiculous checks.
2011-07-04 23:14:20 +02:00
QAston
3bf7035fe1
Core/Spells: Remove some redundant code.
2011-07-04 22:10:42 +02:00
Nay
d6782fa826
Core/Misc: Refactor SendPlaySpellVisual and SendPlaySpellImpact and move them to Unit (from Spell)
2011-07-04 14:46:48 +01:00
click
7ee3a99a44
Core: Fix compile after the last attribute renaming (naming of this flag might change later)
2011-07-03 12:49:01 +02:00
QAston
86dde83dda
Core/Spells: Define many unknown SpellCastTargetFlags enum values, rename some target type enum values to follow standards, also correctly implement TARGET_UNIT_TARGET_PASSENGER.
2011-07-02 16:12:19 +02:00
tobmaps
18a2d330a8
Core/Spells: Prevent abilities that are 'usable while stunned' being usable while in non-stun effects. Original idea by darkstalker
2011-06-30 08:05:03 +07:00
QAston
d3e887060d
Fix build.
2011-06-30 02:17:07 +02:00
QAston
e79d46e499
Core/Spells: Correctly define TARGET_UNIT_NEARBY_PARTY(3) and TARGET_UNIT_NEARBY_ALLY(4) target types.
2011-06-30 00:49:10 +02:00
kaelima
142943d4c1
This reverts commit f580cddc09.
2011-06-28 13:05:15 +02:00
click
f580cddc09
Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
...
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.
NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
kaelima
9a67aaa8b8
DB/Creature:
...
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.
BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +02:00
QAston
6dcee0c0ea
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
2011-06-26 00:29:36 +02:00
QAston
2bcf63d387
Core/Spells: don't allow spells which hit target only with SPELL_EFFECT_DUMMY to execute spell triggers on that targets, also cleanup related code a bit.
2011-06-26 00:29:12 +02:00
Shocker
3de42791ee
Core/Spells: Partial revert of 5ddf90c5fe, use checkcast hook for disallowing spells to be casted directly
...
Closes #2108
2011-06-24 21:56:37 +03:00
Shocker
5ddf90c5fe
Core/Spells: Don't allow players to cast client-side hidden spells directly
2011-06-23 23:43:49 +03:00
QAston
3137a82c7c
Core/Spells: Cleanup in Spell.h:
...
- Codestyle (fix function naming) and cleanup changes in SpellCastTargets class, also access variables of this class by getters/setters
- Move IsQuestTameSpell function to SpellMgr.h
- Move UnitList typedef to Unit.h
Additionally - add missing copyright notice to SpellAuraEffects.h
2011-06-23 13:28:52 +02:00
QAston
fcc02a045a
Core/Auras: Remove auras with AURA_INTERRUPT_FLAG_HITBYSPELL on spell hit, only when target hit is enemy.
2011-06-21 15:57:18 +02:00
elecyb
53e45b57f8
Core/Spells: Corrected trigger flag for melee based spells
...
Closes #2002
2011-06-15 23:16:45 +07:00
kaelima
b9e8694540
Core: Continued cleanup
...
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
f16df538ee
Core: More codestyle cleanups
2011-06-12 01:47:45 +02:00
click
158966dc79
Core: Codestyle cleanup
2011-06-11 22:35:29 +02:00
Shauren
ce8977d1ce
Added missed changes for previous revision
2011-06-11 13:08:23 +02:00
Shauren
9b79df7074
Core/Spells: Implemented SPELL_ATTR7_IS_CHEAT_SPELL serverside checks and allow GMs to cast these spells
2011-06-11 13:02:54 +02:00
QAston
3ec587e21e
Core/Auras:
...
Make Aura::ModStackAmount(1) an equivalent of reapplying the aura
Recalculate periodic aura timers on aura reapply.
2011-06-11 10:55:17 +02:00
Pesthuf
c59dd93681
Fix spells with TARGET_DEST_CASTER_RIGHT and TARGET_DEST_CASTER_LEFT hitting the opposite direction.
2011-06-09 16:39:41 +02:00
Machiavelli
16ceb5a39e
Core/Spells: Change a log message to debug level and make it more descriptive.
2011-06-07 16:23:20 +02:00
QAston
9542077c38
Core/Auras: Use recalculated aura max duration on spell hit for duration calculations.
2011-06-07 14:19:47 +02:00
QAston
3effdb2c23
Core/Auras: Add Aura::TryRefreshStackOrCreate function and remove stack checks from Aura::Create
2011-06-07 12:47:32 +02:00
Shauren
009aff2cc9
Core/Spells: Fixed targeting selection for target type 90 (TARGET_UNIT_TARGET_MINIPET)
...
Closes #1776
2011-06-04 12:13:27 +02:00
Shauren
91b572d669
Tabs to spaces
2011-05-30 19:48:22 +02:00
Silinoron
4c1f56a2b3
Some cleanup in the first half of Spell.cpp.
2011-05-22 16:01:53 -07:00
tobmaps
4b1464dc41
Core/Spells: Fix problem with stackable spells after last commit
2011-05-22 06:12:25 +07:00
Shauren
78ea0075e1
Core/Spells: Allow overriding aura stack amount from CastCustomSpell
2011-05-21 21:36:37 +02:00
Shauren
37145b6203
Core/Spells: Fixed spell modifiers losing charges on cancelled casts
...
Closes #247
Closes #640
Closes #1353
2011-05-17 13:33:24 +02:00
Shauren
63f7a6d3d9
Core/Spells: Use SpellDifficulty.dbc to check casterAuraSpell, excludeCasterAuraSpell, targetAuraSpell and excludeTargetAuraSpell
...
Scripts/Icecrown Citadel: Fixed Mutated Abomination not being able to eat ooze on heroic mode
Scripts/Icecrown Citadel: Removed some obsolete code
Closes #523 , #1447
2011-05-17 13:17:42 +02:00
vlad852
b4f3b8f95e
Core/Spells: Prevent WPE exploits with spell targeting
...
Closes #1130
2011-05-16 01:51:58 +07:00