Commit Graph

733 Commits

Author SHA1 Message Date
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
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
Shauren
4818c70dcb Core/Spells: Removed unneeded phase check from spell casts, its already done in canSeeOrDetect for spells that need it. Probably more phase checks are not needed either 2012-04-18 22:27:40 +02:00
kaelima
3189b57bf5 Core/Unit: Always initialize a pointer before using it.
(less segfaults, more fun)
2012-04-17 02:14:41 +02:00
Kandera
bb97ff7601 Attempt on converting updatewaterstate for use with units (pets and vehicles) 2012-04-16 12:27:06 -04:00
Subv
3d8aaabaf3 Core/Spells: Do not proc spells with PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_(NEG|POS) if there is no target, reimplemented Storm, Earth and Fire talent in another way
Closes #3367
Closes #2424

If you find more spells that are broken because of this, please notify us
Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-14 20:08:16 -05:00
Subv
0d90f7c257 Fixed build from my previous commit 2012-04-14 08:47:44 -05:00
Subv
0ec7016cca Core/Spells: Corrected logic check for SPELL_ATTR4_IGNORE_RESISTANCES
Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-14 08:23:23 -05:00
Subv
b9c50a8b6e Core/Spells: Prevent Siphon Life from proccing on Corruption apply.
Closes #6150

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-13 13:37:32 -05:00
Shauren
c055a8617d Scripts/Icecrown Citadel
* Fixed Professor Putricide Tear Gas stunning himself
* Fixed visual of Unstable Experiment
* Fixed oozes not picking new targets after hitting old
* Fixed Gas Cloud not using melee attack
* Removed ooze summon position hack

Closes #4301
Closes #2726
Closes #5119
Closes #4464
Closes #2874
Closes #4407
Closes #2421
Closes #4899
2012-04-13 19:56:00 +02:00
Subv
5466092d23 Core/Spells: Fixed Recklessness charges being dropped twice.
Closes #932
2012-04-13 11:54:36 -05:00
Subv
20a09c5857 Core/Spells: Fixed Lifebloom's final bloom benefit from Empowered Rejuvenation
closes #244
Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-12 05:54:33 -05:00
Shauren
da8c7d2344 Core: Fixed warning C4263: 'bool Creature::SetDisableGravity(bool,bool)' : member function does not override any base class virtual member function 2012-04-11 21:30:56 +02:00
Kandera
7cc2c6109a Core/Spells: Fix vigilance taunt cooldown spell targeting. cleanup some whitespace 2012-04-11 10:24:51 -04:00
kaelima
5f52cb0d8c Core/Spell: fix crash from 268401029e 2012-04-09 13:39:52 +02:00
kaelima
49e24e2dfb Core/Cleanup:
Mostly if(.. -> if (.. and for(.. -> for (..
but also some miscellaneous cleanup
2012-04-08 23:59:52 +02:00
Subv
268401029e Core/Spells: Implemented SPELL_ATTR4_IGNORE_RESISTANCES.
Closes #919

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-08 15:15:06 -05:00
Machiavelli
bc96df1aae Core/Shared: Move container functions to shared project under Trinity::Container namespace. Also implement RandomResizeList which takes a predicate function as parameter.
Core/ScriptedAI: Extend SummonList::DoAction to take a predicate function as parameter and allow specifying a maximum number of units to be selected.
2012-04-08 17:40:05 +02:00
Machiavelli
e636531da3 Core/Movement: Fix pushback issues and client freeze. 2012-04-08 17:03:44 +02:00
Subv
f17b990f68 Core/Spells: Fixed rogue T10 2P and 4P bonuses
Closes #422

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-04-07 16:58:56 -05:00
Subv
e94a5dd16f Core/Visibility: Pets should be always visible for group mates.
Patch by zarocks
Closes #55
2012-04-07 13:31:53 -05:00
MrSmite
b843688fa8 PeAI update
* Better handle target selection for defensive pets. Adds triggers for when owner is damaged or begins attacking something.

* Defensive pets no longer run off as soon as a mob aggros the owner but rather at first damage to owner or owner first attack

* Pets on stay will continue to attack unless target unreachable
2012-04-06 12:26:45 -04:00