Commit graph

125 commits

Author SHA1 Message Date
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
cea44af521 [7361] 2 lost cases from prev. commit. 2009-03-01 01:16:36 +03:00
VladimirMangos
b9326100ea [7360] Use defines instead harcoded item prototype array sizes. 2009-03-01 00:32:37 +03:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
  aura present at character, character race/gender.
* Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
  zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
* Old hardcoded lines for similar check removed from sources and required DB support for work now.
2009-02-27 11:15:36 +03:00
freghar
f04ec2b98b [7272] Trailing whitespace cleaning
The "please use git diff --check before commit" thing.

Signed-off-by: freghar <compmancz@gmail.com>
2009-02-12 15:14:40 +01:00
VladimirMangos
e97c7ad9c5 [7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases. 2009-02-09 15:42:22 +03:00
VladimirMangos
fdd8176d74 [7227] Implement prismatic sockets. Related code cleanups.
Big thanks to TOM_RUS for help in reseach!
2009-02-04 02:09:46 +03:00
DiSlord
f19f5618fb Fix some targeting data get from client
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 22:02:23 +03:00
VladimirMangos
b5da610388 Phase system development continue.
* Use WorldObject phase mask field instead explicit aura scan. This allow have phase for any world objects.
* Add phase checks to packet broadcasters/object searchers. This let correctly work say/yell/area
  and multi/random target spells/aggro assistance in phased areas or target selection.
* In GM-mode character presense (see and visible) in all phases except normal visibility efects including GM-visibility.

TODO: summoned objects phase set base at owner phase, load phase mask for creatures/gameobjects from DB, in game commands.
2009-01-31 06:06:01 +03:00
VladimirMangos
a1b5c3cb02 Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures)
Better gameobject barber chairs check at loading.
2009-01-31 05:55:10 +03:00
VladimirMangos
0fd361a0a3 Switch to support client 3.0.8a (build 3506)
Merge commit 'origin/308'
2009-01-30 02:10:23 +03:00
DiSlord
59861857e5 Replace values by defines
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 20:38:26 +03:00
DiSlord
6c51a318fd Fix some typos in SPELL_AURA_ADD_TARGET_TRIGGER aura work
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:31:11 +03:00
DiSlord
e0b59c21ec Implement 3 TARGET_RANDOM_FRIEND_CHAIN_IN_AREA target type
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:31:10 +03:00
DiSlord
f96d29469a Implement 50 PELL_AURA_MOD_CRITICAL_HEALING_BONUS aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:31:07 +03:00
Sarjuuk
f8463bef69 [7183] Updated spell casting pushback system.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-26 22:30:59 +03:00
DiSlord
eceae8dc99 [7181] Fix mana regen on priest 47585 use
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:30:57 +03:00
pasdVn
b99bc7918d [7175] Fix some hunter abilites
56342 and ranks - proc on trap activation
 34497 and ranks - mana restor amount
 56333 and ranks
 add some cast as trap activation

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:30:48 +03:00
DiSlord
b827e0f2c3 Restore some spells animation
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:30:47 +03:00
DiSlord
1eb95f77e9 Fix some typos in SPELL_AURA_ADD_TARGET_TRIGGER aura work
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:12:01 +03:00
DiSlord
45263d1424 Implement 3 TARGET_RANDOM_FRIEND_CHAIN_IN_AREA target type
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:57 +03:00
DiSlord
249d039d93 Implement 50 PELL_AURA_MOD_CRITICAL_HEALING_BONUS aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:40 +03:00
Sarjuuk
9e52b0f748 [7183] Updated spell casting pushback system.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-25 23:26:28 +03:00
DiSlord
9759808b4a [7181] Fix mana regen on priest 47585 use
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 21:56:47 +03:00
pasdVn
be736100cb [7175] Fix some hunter abilites
56342 and ranks - proc on trap activation
 34497 and ranks - mana restor amount
 56333 and ranks
 add some cast as trap activation

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 17:46:37 +03:00
DiSlord
4d2b6fc808 Restore some spells animation
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 17:43:59 +03:00
VladimirMangos
7a8a1a71bf Merge commit 'origin/master' into 308
Conflicts:

	src/game/ObjectMgr.cpp
	src/shared/revision_nr.h
2009-01-25 06:56:05 +03:00
DiSlord
ae5b65765d [7167] Restore work warrior 23885 after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 03:33:07 +03:00
DiSlord
528d85ed4d Aways apply additional buff for some spells (an do it as normal cast)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 03:32:22 +03:00
DiSlord
de47d53d9e Correct build m_needAliveTargetMask for channeled spells
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 03:32:17 +03:00
DiSlord
4b5aba18f8 Some fixes/add to prev commit
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-24 04:28:32 +03:00
DiSlord
abaa111eaa [7159] Allow GO cast as need (use go coordinates for target select in some cases)
Fixed work all Huter traps target selection
More check in ObjectAccessor::Get Object
More generic work 22 TARGET_CASTER_COORDINATES target type

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-24 03:44:45 +03:00
DiSlord
3f4821acfb [7156] More generic periodic aura work
Implement SPELL_AURA_PERIODIC_HEALTH_FUNNEL
Apply SPELL_AURA_PERIODIC_HEALTH_FUNNEL mod to aura periodic time
Add support SPELL_ATTR_EX5_START_PERIODIC_AT_APPLY flag
Apply duration mod to channeling spells
Fix mage 44401 and correct drop its charge

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-23 22:10:12 +03:00
GriffonHeart
25b120877e [7154] Move allow player fly check to function.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-23 15:57:23 +03:00
DiSlord
3c45d5f548 [7149] Implement paladin dummy proc - 53380 and ranks, 53501 and ranks
Complete fix dummy and trigger from Hunter 53228 amd ranks
Allow trigger from some Hunter, Paladin spells

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-23 01:45:16 +03:00
freghar
11ed0e99a8 [7146] Trailing whitespace code cleanup
Signed-off-by: freghar <compmancz@gmail.com>
2009-01-22 18:10:16 +01:00
DiSlord
2a891a8c92 [7140] Implement 76 TARGET_DYNAMIC_OBJECT_COORDINATES
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-22 02:03:26 +03:00
tomrus88
8ffa79211b Merge branch 'master' into 308 2009-01-21 10:59:27 +03:00
DiSlord
ca7ac74134 Allow trigger from 10 and ranks Mage spell (work some talents)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-21 00:28:00 +03:00
VladimirMangos
ee6072f232 [7117] Implement explicit recipe discovery abilities.
* Implement SPELL_EFFECT_CREATE_ITEM_2 (157). This alos let work many item creating spells.
* Add `skill_discovery_template`.`reqClass` for allow clas specific racipes storing in table.
* Make primary key for `skill_discovery_template` pair (spellId,reqSpell) that allow have duplicate recipes for different reqSpells.
* Implement SPELL_EFFECT_SCRIPT (77) cases for explicit recipe discovery spells with learn spell selected by `skill_discovery_template` data.
Note: as expected explicit recipe discovery abilities always return some spell while exist any not learned yet for player class.
2009-01-20 00:07:43 +03:00
DiSlord
17004d59d4 [7111] Fixes in Spell Effect immunes
Correct totem immunes for dot/leech/Fear/Transform auras (immune only to effect)
Correct log if all effects immuned by Effect Immune
Move check for IMMUNITY_STATE to Unit::IsImmunedToSpellEffect

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-19 02:57:50 +03:00
DiSlord
c01fe58723 Implement some dummy triggers
Warior 42770, 58872 and ranks
Warlock 47230 and ranks, for 39372 use m_amount instead hardcoded value
Rogue 51669 and ranks, 51625 and ranks
Hunter:
 53290 and ranks (need handle regen amount for 57669)
 56342 and ranks (from periodic)
 53228 and ranks (only mana regen part)
Shaman:
 58877 (aura should on summoned wolf)
 51556 and ranks (need handle dummy for 52759)
 16180 and ranks, 51525 and ranks
Death Knight 50365 and 50371, 48979 and ranks, 49005, 61257, 49217

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:36 +03:00
DiSlord
17e2bcc81d Enable triger from rogue poisons (need for some talents)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:22 +03:00
DiSlord
7e6f7bf6e4 Fix/prevent cast if client send incorrect target for some spells
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:19 +03:00
DiSlord
7cded2ed9c [7091] Work vs spell attributes (compare 303 and 308)
Add some comments
Use correct flag for SPELL_ATTR_EX_NO_INITIAL_AGGRO

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-15 21:31:10 +03:00
VladimirMangos
633cad5a56 [7089] Implement ITEM_ENCHANTMENT_TYPE_USE_SPELL support.
This allow cast spells at item used from engineering recipes 54999, 54736, 54998, 55002, 55016, 54793.
2009-01-15 03:08:45 +03:00
tomrus88
77f11162dc Merge branch 'master' into 308 2009-01-13 20:08:41 +03:00
DiSlord
6d17820af2 Fix detect m_attackType for wands
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-12 21:18:55 +03:00
DiSlord
cb66f99fc2 Fix priest 47540 and ranks
Also stop chanelling mage AM/priest 47540 if target die
Set DK cast 52212 as triggered from aura.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 00:56:42 +03:00
DiSlord
71b33ca2f1 [7056] Proc system add
Add use autorepeat flag and set more corect triggers flag for ranged autorepeat spells
Restore work paladin 20210 and ranks after client switch
Add 6-7 scripted paladin shock spell (also add it in dummy and fix flag)
Hidden cooldown and hacky (need more fixes in triggers) fix for 33953
Remove not used code

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-09 00:59:28 +03:00