Commit graph

1165 commits

Author SHA1 Message Date
DiSlord
9e1b9e56fd [7127] Implement 271 SPELL_AURA_MOD_DAMAGE_FROM_CASTER aura
Allow this aura trigger and drop charges (only if caster hit target)

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-21 01:36:17 +03:00
pasdVn
1d0d9c6fa2 [7126] Fixed typo in spell 53301 and ranks dummy tick.
Fixed typo in spell 53290 and ranks dummy proc.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-20 22:40:58 +01:00
DiSlord
921914f87e [7125] Work under pet talents
Coorrect update Talent Points on levelup / leveldown
Unlearn other ranks of learned talent
Fix typo in Pet::HasSpell (wrong result for removed spell)
Allow .reset talents reset pet talent
Implement SPELL_AURA_MOD_PET_TALENT_POINTS aura (hunter talent)
Only reset pet talent from trainer unlearn.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-21 00:31:19 +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
DiSlord
b6e7f49887 Use SPELL_AURA_MOD_MECHANIC_RESISTANCE for melee spells
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-21 00:27:49 +03:00
ApoC
220aa56fed [7124] Removed virtual keyworld from Map::CanUnload method. This method needn't to be virtual. Method moved all into header file to be inlined.
Fixed problem when instance never unloaded in case low population servers where update time always fit into WORLD_SLEEP_CONST and unload time is multiple of this constant.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-20 20:54:23 +01:00
Balrok
ce384c5278 [7123] Cleanup in using STD's containers erase method.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-20 20:07:44 +01:00
VladimirMangos
8171c9c61a [7122] Initilize UnitActionBarEntry fields. 2009-01-20 15:32:34 +03:00
arrai
6ef0e056b0 [7121] Fixed ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ACHIEVEMENT 2009-01-20 01:57:15 +01:00
Wyk3d
dffdb47fb9 [7120] Revert "Reduced number of cells (doubled max visibility distance)." 2009-01-20 01:33:59 +02:00
Wyk3d
a97d49bdc5 [7119] Fixed some typos that caused a freeze 2009-01-20 00:50:04 +02:00
VladimirMangos
dab1f96f66 [7118] resolve problems with partly appied [7117] 2009-01-20 00:35:02 +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
VladimirMangos
ac9b14d70c [7116] Correctly show quest/gossip menues.
In case non defeault gossip text with quest only
In case empty quest and gossip menus and gossip text.
2009-01-20 00:05:03 +03:00
arrai
9af1caccd8 [7116] added support for spell 50977, still requires entry in spell_target_position for triggered spell 53822 2009-01-19 22:00:52 +01:00
VladimirMangos
e188a0a505 [7115] Sort spells by spellfamily cases for speedup most common (check fail) case. 2009-01-19 15:55:24 +03:00
VladimirMangos
9e590f7ceb [7114] Code cleanups.
Remove redundant `inline` for in-class function definitions.
Fixed float -> int implicit casts.
2009-01-19 15:13:57 +03:00
VladimirMangos
9fba64aeae [7113] Not update/store achievement progress for counter == 0 2009-01-19 13:30:18 +03:00
ApoC
be051a706c [7112] Fixed glyphs apply on character load.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-19 02:10:06 +01: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
c9ae3b8b5c Apply diminishing only on 1 spell aura add/begin timing only on last spell aura removed
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-19 02:49:47 +03:00
ApoC
d469a604eb [7110] Make some methods in BattleGroundMgr static.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 21:25:18 +01:00
ApoC
5d63453deb BattleGroundMgr::RemoveBattleGround inlined.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 21:14:07 +01:00
ApoC
aa2a454ca1 Little clean up in BattleGroundMgr.h
Changed uint64 in method parameters to be passed by const reference.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 21:14:07 +01:00
ApoC
c4dba30b51 Use configuration values for arena directly instead of values cached in local variables. This should fix reloading arena configuration in runtime.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 21:14:06 +01:00
GriffonHeart
a5e948280b [7109] Correct show percentes at DBC loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-18 23:02:53 +03:00
VladimirMangos
148b7fd3ab [7108] Allow use shift-links to creature entries (from .lookup creature) in .npc add command. 2009-01-18 22:18:34 +03:00
VladimirMangos
64073f65c0 [7107] Output skill points (current, max, perm/temp bonus) for known skill in .lookup skill. 2009-01-18 22:18:13 +03:00
ApoC
e3ccd4b4b7 [7106] Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 19:54:27 +01:00
ApoC
6428d29cd5 [7105] Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 19:37:34 +01:00
DiSlord
39754133aa Code for Diminishing Returns optimize
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-18 21:08:28 +03:00
ApoC
125416d242 [7104] Fixed creatures are not attacking with taunt aura.
Improved target selection if more taunt auras are on target.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 18:44:08 +01:00
arrai
383239b595 [7103] replaced wrong delete by delete[] 2009-01-18 15:07:34 +01:00
McBen
1d80a7a788 [7102] Fixed .showarea/,hodearea commands.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-18 05:07:39 +03:00
VladimirMangos
c138b5462d [7101] Fixed build at VC80/VC90 x64 with proper call getrevision.exe 2009-01-18 03:36:45 +03:00
Snow
bd30c12169 [7100] More cleanups for character_spell from outdated data.
Signed-off-by: Neo2003 <Neo2003@getmangos.com>
2009-01-18 01:51:45 +03:00
DiSlord
4add3d2128 [7099] Implement some item/enchants mods from 303:
ITEM_MOD_ATTACK_POWER
 ITEM_MOD_RANGED_ATTACK_POWER
 ITEM_MOD_FERAL_ATTACK_POWER
 ITEM_MOD_SPELL_HEALING_DONE
 ITEM_MOD_SPELL_DAMAGE_DONE
 ITEM_MOD_MANA_REGENERATION
 ITEM_MOD_SPELL_POWER

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-18 01:34:50 +03:00
arrai
cfde5746cb [7098] Changed build system of contrib/extractor to CMake 2009-01-17 20:53:51 +01:00
DiSlord
a9476381bc [7097] Fix some triggers changed on client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:04:22 +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
a17dd3c0a0 Fix one palain seal damage calculation (remove dead code)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:31 +03:00
DiSlord
2cd801a9ef Prevent (in some cases) remove aura state flag if exist similar aura.
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:26 +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
9f08095c26 Allow stack passive and not passive auras in all cases
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-17 21:03:12 +03:00
VladimirMangos
333395f90a [7096] Fixed unexpected expirience gain in starting zones for expansion 1 races. 2009-01-17 19:39:50 +03:00
KiriX
778d4f9741 [7095] Experience basic gain coefficient for expansion 2 zones.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-17 17:22:31 +03:00
arrai
2cfebd6a57 [7094] Implemented spell interrupt flag 0x10 2009-01-17 02:37:44 +01:00
VladimirMangos
a1e0900d37 [7093] Speedup spell learning code. 2009-01-17 00:23:48 +03:00
VladimirMangos
ed14e59de4 Fixed typo in log output and misc code cleanups. 2009-01-16 18:11:58 +03:00