Commit Graph

4104 Commits

Author SHA1 Message Date
Nay
e56b2cdd59 Core: Fix a few compile warnings 2012-05-20 17:58:35 +01:00
Nay
66ce5a1148 And I forgot to Ctrl+S, yay me. 2012-05-20 16:36:44 +01:00
Nay
7661858ac0 Core/SAI: Few changes to db data validation for actions and event flags 2012-05-20 16:13:52 +01:00
Nay
512b0945a8 Core/BG: Add map to start zone teleport possible exploit log 2012-05-20 15:37:13 +01:00
kaelima
c3287fee06 Core/SmartAI:
- Improve an error msg in ProcessAction
- Allow dist/angle to be 0.0f and set default if negative when using SMART_ACTION_FOLLOW
- Some minor cleanup in Opcodes.cpp, all smsg's should have Handle_ServerSide
2012-05-19 13:04:58 +02:00
Nay
fc0950dbf3 SQLS: Correct comments for 2012_02_16_00_world_conditions.sql
(Core/Opcs: Use Handle_NULL for an unused opcode)

Closes #6517 (pr)
2012-05-19 11:48:41 +01:00
Kandera
d1e0dc3fe0 Core/Spells: fix dispel aggro in a less hacky way! 2012-05-18 13:49:59 -04:00
Kandera
1037f96e4f Core/Spells: Damage should be dealt AFTER m_damage has been set. possibly fixes scourge strike damage calculations. 2012-05-18 12:31:13 -04:00
Kandera
e897bb59f7 Core/SpellEffects: successful dispel effects on hostile targets should put you in combat. Closes #656 Closes #678 2012-05-18 12:25:13 -04:00
Kandera
01b2bf8057 Core/Spells, DB/Conditions: convert checkcast cpp to conditions for spell 52264 (deliver stolen horse) 2012-05-18 12:09:35 -04:00
Kandera
edf1de6d93 Core/Spells: move rocket boots spell cast check to spell script. add event for checkcast for deathcoil (dk) heh i forgot it >.< 2012-05-18 11:56:23 -04:00
Kandera
7688c7609f Core/Spells: remove holy shock and death coil (dk) from checkcast and add them to the checkcast of the spell script. also check if unit is in front for damage spell of death coil (dk) Closes #6027 2012-05-18 11:44:38 -04: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
kandera
0c3dbb3a57 Merge pull request #6522 from Vincent-Michael/TakenCalculation
Core/Spell: Fix SpellDamageBonusTaken calculation for negative value
2012-05-16 07:55:22 -07:00
Kandera
c70792df02 Core/Scripting: add the ability to access loot/go state changed events for gameobjects from cpp scripting. (malcrom's idea) 2012-05-16 08:47:43 -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
kandera
b01cca9bbc Merge pull request #6511 from Vincent-Michael/SpellHealingBonusTaken
Core/Spell: Fix SPELL_DAMAGE_CLASS_NONE calculation for SpellHealingBonusTaken
2012-05-14 06:49:12 -07:00
Subv
e74135946d Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-05-13 19:40:05 -05:00
Subv
1a06e197fd Core/Spells: Proc the spells that have DEST target when there is no other target info
Closes #6443
Closes #6277
Closes #6331

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-05-13 19:39:06 -05: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
QAston
58f63509cd Merge pull request #6314 from Chaplain/spells
Core/Spells: Separation of caster/target part damage/heal bonus calculation.
2012-05-09 15:10:33 -07:00
Kandera
d6d45633c8 Core/Commands: Add level 3 command for setting npc data. used for testing scripts. 2012-05-09 10:29:06 -04:00
kaelima
1fec4a5af2 Core/Gameobject: Set artkit once in GameObject::Create 2012-05-09 13:52:31 +02:00
kaelima
d50b23d9f9 Core/Transport: Set GAMEOBJECT_FLAGS from DB for transports, not hardcoded 2012-05-09 03:08:34 +02:00
Kandera
5fc2c8cda3 Core/Items: fix compile error from previous commit. use item instead of bag. 2012-05-08 10:06:38 -04:00
Kandera
6c15bee884 Core/AI: fix the call to help handler to use distance from the npc and not the victim of the npc. (thx shauren) 2012-05-08 09:17:04 -04:00
Kandera
d2a33afc37 Core/Items: fix deletion of items when the bag they are in gets deleted on load. also checks for items that have no real bag for possible expoits. 2012-05-08 09:15:52 -04:00
Svannon
7386aafaf6 Core/AI - Fix Evade Bug 2012-05-07 16:57:28 -06:00
kaelima
7be70393e5 Movement/WaypointGenerator: Fix issue where waypoints with delay always would turn to 0.0 orientation 2012-05-07 14:33:24 +02:00
kaelima
f34e650fe0 Core/Accounts: Delete all bans related to an account when it has been deleted. 2012-05-06 02:37:31 +02:00
Chaplain
d94a89c465 Clean misused m_canBeRecalculated.
*When we solve problem with m_amount we could make right solution for caster/victim damage calculation.
2012-05-04 18:35:11 +03:00
MacWarrior
58b05da8df Fix creature's save 2012-05-04 16:42:23 +03:00
kandera
a8a5b5a8f0 Core/Seasonal: move quest resetting to the beginning of the event. 2012-05-03 12:45:28 -03:00
Amit
a12faa5e9d Fix log typo with spell_group at SpellMgr.cpp 2012-04-30 13:53:25 +03:00