Commit Graph

753 Commits

Author SHA1 Message Date
Kandera
93cec76cdb Core/Spells: small change for previous commit. fixes typos 2012-07-02 11:33:12 -04:00
Kandera
7f960fed73 Core/Spells: fix damage bonus calculations for sanctified wrath talent. 2012-07-02 10:09:41 -04:00
Subv
8eba4aebfb Core/Units: Removed deprecated code 2012-07-01 18:29:59 -05:00
Elron103
dfdbc91e90 Core/Spells: Fix spell casting time reduce / increase effects for players and creatures 2012-06-29 00:11:05 +02:00
Vincent-Michael
ef4d9dd4ae Core/Spells:
* Fix bloodthirst Heal
* Move bloodthirst damage calculation in Spell script
* Fix some codestyle
2012-06-20 18:06:29 +02:00
Discover-
e190a202ca Core/CreatureAI: Implement an OnSpellClick hook instead of the ugly way that uses DoAction with EVENT_SPELLCLICK.
Core/SmartAI: Implement SMART_EVENT_ON_SPELLCLICK. Parameter is the clicker.

If someone could update the wiki accordingly for SAI I would appreciate that. Thanks to @Shauren for some help!
2012-06-19 00:07:20 +02:00
QAston
a9b6a0c103 Merge pull request #6827 from drskull/master
Core/Spells: Small fix IsImmunedToSpell
2012-06-17 15:20:38 -07:00
dr.skull
b5a072855e Fix added check for IsImmunedToSpell
Signed-off-by: dr.skull <dr.skull@centrum.sk>
2012-06-17 23:19:32 +02:00
dr.skull
3f8efb21cd add IsEffect() check to correct IsImmunedToSpell
Signed-off-by: dr.skull <dr.skull@centrum.sk>
2012-06-17 02:23:47 +02:00
Elron103
3164ba627b Core/Combat: Fix CanAIAttack implementation 2012-06-16 20:55:07 +02:00
QAston
e53b44b6ba Merge pull request #6491
Core/Spells: convert some spell effects to SpellScripts
Closes #6491
2012-06-14 19:12:03 +02:00
dr.skull
63dd625154 Fix wrong magnet aura takeCharges when spell hit not magnet unit
This will fix issue 3151 second problem

Signed-off-by: dr.skull <dr.skull@centrum.sk>
2012-06-14 00:40:33 +02:00
Kandera
5daa540d3a Core/Spells: handle SPELL_AURA_MOD_DEBUFF_RESISTANCE only for auras. fixes sacred cleansing causing the whole spell to be resisted. 2012-06-13 12:34:59 -04:00
kandera
41d2de2ca3 Core/Spells: fix addition of unit_state_casting. thx vincent-michael 2012-06-10 16:10:43 -03:00
Kandera
643b68926e Core/Spells: codestyle and fix logic for adding unit state casting. (thx Moriquendu) 2012-06-08 08:56:56 -04:00
Kandera
f92ae93806 Core/Spells: fix crash introduced in d719730929 (thx vincent-michael) 2012-06-07 14:48:43 -04:00
Kandera
d719730929 Core/Spells: do not apply unit_state_casting for instant cast spells. 2012-06-07 12:02:06 -04:00
Shauren
2c153b8a43 Core/Movement: Fixed Unit::SetFacingTo 2012-06-07 15:02:51 +02:00
Shauren
810f21efbc Core/Movement
* Moved enter/exit vehicle packets to spline.
* Fixed spline movement on transports such as elevators (for which we do not keep track of its exact position) - path will be using normal coordinates (not transport offsets)
2012-06-06 20:36:34 +02:00
Vincent-Michael
79e00cfcbe Core/Movement: Add missing SplineFlags / SplineTypes to enums 2012-06-02 19:14:19 +02:00
Shauren
f5ab1a3a5c Core/Movement: Fixed Unit::StopMoving() 2012-05-31 23:04:09 +02:00
Shauren
425eeb8280 Core/Movement
* Implemented creature movement on transports
* Set minimum speed for creature allowed to start movement (too low speed leads to overflows in movement time calculations which in turn leads to crashes)
2012-05-31 19:45:11 +02:00
joschiwald
cd7ab6f3a5 Merge branch 'master' of github.com:joschiwald/TrinityCore into spellscripts
Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
	src/server/game/Spells/Spell.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/scripts/Spells/spell_paladin.cpp
2012-05-28 04:27:51 +02:00
joschiwald
ca07f30d03 Core/Spells: convert some spell effects to SpellScripts 2012-05-28 04:07:51 +02:00
kaelima
f424052f82 Core/Spells: Make spellclick spells non triggered 2012-05-23 14:28:38 +02:00
Kandera
df9791f1aa Core/Items: fix typo from previous commit (thx vincentmichael) 2012-05-22 14:05:53 -04:00
kandera
3506e48e9e Merge pull request #6513 from Xanvial/glyph_of_tow
Core/Spell : Glyph of Totem of Wrath
2012-05-22 05:57:37 -07:00
Vincent-Michael
5a154ac272 Core/Spell: DK T10 Melee 4P is SPELL_AURA_PROC_TRIGGER_SPELL proc 2012-05-21 16:31:12 +02:00
Mik43l
388250961f [Core/Spell]: Fix Blessing of Ancient Kings (Val'anyr, Hammer of Ancient Kings) closes #6521 2012-05-20 22:09:12 +02:00
Kandera
9e6a5593bd Core/Spells: if doneadvertisedbenefit is 0 gift of the naaru will never get the ap bonus. moved outside the check to fix. 2012-05-18 10:25:14 -04:00
Kandera
c6aa41cc10 Core/Spells: Revert previous commit. add exception for deep wounds in pct done aura modifiers. clean up heal bonus code to use the correct numerical types. 2012-05-17 10:41:21 -04:00
Kandera
ea4815b528 Core/Spells: change spell bonus damage taken pdamage to float to match melee damage bonus taken 2012-05-16 11:05:11 -04:00
Vincent-Michael
b90cb5878d Core/Spell: Fix SpellDamageBonusTaken calculation for negative value 2012-05-15 23:43:06 +02:00
Kandera
c05c16a8de Core/Spells: more immunities fixes! mechanics are supposed to be checked for finding out if immune to the entire spell. 2012-05-15 15:07:53 -04:00
Kandera
648321e121 Core/Spelld: fix target selection for ground based aoe spells. use the center of the cast (dynamic object) instead of the caster for checking los 2012-05-15 13:26:15 -04:00
kaelima
b72c690905 Fixed compile 2012-05-15 00:03:18 +02:00
Kandera
124c65ad80 fix compile warnings from 548ac10 2012-05-14 15:28:31 -04:00
Kandera
cd06bb9377 Core/Spells: fix possible crash from not having any effect and trying to check if immune. fixes non effect spell mechanic checking for spells with both spell mechanics and effect mechanics 2012-05-14 15:24:48 -04:00
Kandera
06e019b722 Core/Entities: move spellproto check to the outside of the forloop to not has crashes 2012-05-14 14:23:21 -04:00
Kandera
548ac10879 Core/Entities: fix calculations for damage taken/done with negative values (should go into effect) and correctly implement SPELL_ATTR6_NO_DONE_PCT_DAMAGE_MODS. small cleanup 2012-05-14 14:11:02 -04:00
Xanvial
25f1c5a51d Core/Spell : Glyph of Totem of Wrath
Spell bonus granted by glyph should calculated based from summoned totem, not from player's aura
2012-05-14 12:15:57 +07:00
Vincent-Michael
ede623b473 Core/Spell:
* Fix SPELL_DAMAGE_CLASS_NONE calculation for SpellHealingBonusTaken
* Fix some codestyles
2012-05-13 21:07:59 +02:00
Vincent-Michael
e122f9fd30 Core/Spell:
* Fix Nourish heal calculation
* Fix some codestyle
2012-05-13 18:08:57 +02:00
kaelima
a1ff27a1c6 Core/Threat: Some corrections to 5709929d2b
Fixes HandleChannelDeathItem (spells such as Drain Soul), which got broken by moving m_deathState = s, thanks Shauren
2012-05-13 17:47:27 +02:00
QAston
e5268ba0b5 Merge pull request #6502 from Vincent-Michael/SPELL_DAMAGE_CLASS_NONE
Core/Spell: Fix some problems with spells calculation
2012-05-13 07:52:14 -07:00
Vincent-Michael
79a735fb01 Core/Spell:
* Fix Spells with DmgClass SPELL_DAMAGE_CLASS_NONE
* Fix SPELL_AURA_PERIODIC_HEAL calculation
* Fix Swiftmend heal calculation
* Fix some codestyle
2012-05-13 16:29:01 +02:00
Malcrom
5709929d2b Core/Threat: Fix by faq.
Turning gm on, now drops threat.
Dead mobs no longer holds threat on player.
Also fixed some Engrish.
2012-05-13 11:33:42 -02:30
joschiwald
4e354d6ca9 Core/Spells: fix damage mods from caster on target 2012-05-11 22:43:06 +02:00
Chaplain
469ba0b0e7 Clean up for 58f63509cd
*restore const methods in spellauraeffects
*fix typo in Unit::CalculateMeleeDamage thx bytewarrior
*minor speed up in SpellInfo::GetMaxTicks() thx Warpten
*deleted duble ';;' thx bytewarrior
*speed up in SpellInfo::GetMaxTicks() thx goes to Vincent-Michael
2012-05-10 20:42:07 +03:00
Chaplain
879070bc80 Core/Spells: Separation caster/target part damage/heal bonus calculations.
*Implement HoT/DoT save caster side bonuses and apply target mods on each tick
2012-04-28 23:32:25 +03:00