Commit graph

126 commits

Author SHA1 Message Date
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
601f305521 [7320] Avoid apply harcoded (unexpectadly) percent value 2 times to weapon damage part of special weapon ability. 2009-02-21 22:09:18 +03:00
Tequila
9f4154a6f9 [7318] Fixed damage bonus for spell 1329 and ranks when target is poisoned.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:26:16 +01:00
Lightguard
628d97f588 [7315] Fixed bonus damage for Seal of Command.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:07:19 +01:00
NoFantasy
58f2c540bf [7287] Remove wrong implementation for spell 37573 dummy effect. It better implement in scripts anyway.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-16 18:05:12 +03:00
VladimirMangos
f75f112bfc [7284] Avoid 2 times skill value request. 2009-02-15 23:50:54 +03:00
VladimirMangos
5a4358dda9 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
* Use in functions and fields BattlegroundTypeId type instead uint32
* Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
  Many bg have same raw values for type id and queue id but some can be affected by this bug:
  BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
* Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
* Remobe redundent for header itself includes for BG headers.
* Use Auction location enum instead raw valus.
2009-02-08 11:05:11 +03:00
VladimirMangos
5e2553ff7e [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
2009-02-07 10:34:11 +03:00
VladimirMangos
cb0ebde926 [7234] Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 07:57:45 +03:00
VladimirMangos
f94377622e Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 06:00:01 +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
VladimirMangos
f5ac3d245f [7216] Create gameobject in death point instead spawn point in spell 23019 effect. 2009-02-01 21:31:56 +03:00
DiSlord
8197ccbc73 [7209] Fix damage for paladin 53595
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 22:04:12 +03:00
DiSlord
90f09e001a Restore work priest 47580 and ranks after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 19:39:37 +03:00
VladimirMangos
aa24bd836e [7207] Phase system development continue for DB/in_game objects
* Store phase mask for creatures/gameobjects/corpse in DB
* Propertly set phase for summoned creatures/gameobjects/pets/corpses/spell related dynobjects
* Select proper phase for spawned creature/gameobjects and save it in DB

TODO: in game commands.
2009-01-31 06:11:50 +03:00
DiSlord
4ecfbcc2f5 Use spell_bonus_data table for store custom damage/healing bonus coefficients
Big thanks ApoC for help create table.
Fixed bonuses for stacked periodic
Warning need test all coefficients for correct bonus amount.
TODO:
 use this table for absorb bonus calculation
 use this table for melee spells AP bonuses
 use chain multipler in final damage/heal amount

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:23:16 +03:00
DiSlord
702105ccca Remove not need code (implemented by another way)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:12:08 +03:00
DiSlord
8fabb0af17 Implement warrior 1464 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:51 +03:00
DiSlord
c519f9a1b3 Restore some shaman totem work (implement 55441 gluph)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:23 +03:00
DiSlord
20ea42e0db [7176] Implement full work priest 47580 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 18:58:45 +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
c336eef4cd Fixed druid tree form bonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-24 23:02:05 +03:00
VladimirMangos
bbf8fd0742 Not store dependent spells in character_spell
* Mark spells learned in result character creating, another spell learning, skill grow,
  quest reward as dependent and not store its in `character_spell`.
* Prevent re-learning known spell in expected state
* Prevent re-learning low rank spell as active if higher rank known.
* New type of non-stacked ranked spells check: skill dependent spell bonuses.
* Activate (show propetly and cast if need) lesser spell rank
  for non-stackable in spellbooks spells at unlearn high rank
2009-01-24 12:03:43 +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
freghar
11ed0e99a8 [7146] Trailing whitespace code cleanup
Signed-off-by: freghar <compmancz@gmail.com>
2009-01-22 18:10:16 +01:00
NoFantasy
1cae7220fa [7145] Mount ids for some spell casted taxi flights.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 18:32:31 +03:00
evilstar
c54383360a [7137] Implement SPELL_EFFECT_ALLOW_RENAME_PET, and then item 43850 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 00:00:32 +03:00
VladimirMangos
7766d016ca [7134] Make reqirement for DB data for non-player explicit discovery spell optional. 2009-01-21 15:51:37 +03:00
VladimirMangos
2b91a790bc [7133] Re-implement explicit spell discovery code.
* Replace reqClass by reqSkillVlaue field in `skill_discovery_template`
  and check expected skill points amount for specific reipe discovery.
* Add new `spell_loot_template` loot table for store item selection data for spells.
  At this moment for expclicit recipes discovery spells.
* Code cleanups.
2009-01-21 06:39:54 +03: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
Wyk3d
a97d49bdc5 [7119] Fixed some typos that caused a freeze 2009-01-20 00:50:04 +02: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
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
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
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
VladimirMangos
ed14e59de4 Fixed typo in log output and misc code cleanups. 2009-01-16 18:11:58 +03:00
DiSlord
31722c1c0c [7085] Restore work 12975 after client switch, patch by MaS0n
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 21:49:37 +03:00
DiSlord
b64ce9ea34 Fix pladin some abiblty - patch by Kirix
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 21:48:26 +03:00
DiSlord
7b6b0bb816 [7082] Implement paladin 53407, 20271, 53408
Remove dead code

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 02:00:21 +03:00
DiSlord
5378d766f0 Fix typo (now power gain % log correctly)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 01:59:34 +03:00
DiSlord
246d45dc80 Add AP bonus for warrior 5308 and ranks, also use 58367 dummy bonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 01:59:20 +03:00
DiSlord
08864a7288 [7078] Restore work rogue 14185 after client switch
Add data to proc table
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-13 22:04:55 +03:00
DiSlord
fa9daa3fb7 [7076] Implement shaman 60103 dummy
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-13 01:17:40 +03:00
DiSlord
ae1f60c27f Use CastSpell(x,y,z ... for EffectTriggerMissileSpell
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-12 21:21:00 +03:00
DiSlord
dd2a59f56d [7068] Use area aura duration for apply aura on unit in area
Allow remove SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE spells by 31224

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-11 21:15:45 +03:00
DiSlord
7162d82a4d [7064] Fix warrior 46968 and ranks damage from AP
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 21:24:43 +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
b968b36979 [7058] Add 669 summon type
Fix typo in mangosd.conf (by SergiK_KilleR)

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-09 19:29:07 +03:00