Commit graph

957 commits

Author SHA1 Message Date
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
VladimirMangos
d4ce99dfa2 [7188] Drop now unneeded hack code. 2009-01-26 20:02:41 +03:00
DiSlord
bab2370ade [7185] More fixes for SPELL_AURA_OVERRIDE_CLASS_SCRIPTS aura spells
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 01:59:20 +03:00
DiSlord
7ee5dd6387 [7184] Implement more generic work for some SPELL_AURA_OVERRIDE_CLASS_SCRIPTS auras
Fix warlock 17804 and ranks
Implement druid 643 set bonus
Shaman 23199, 28248, 32330 item (totems)
DK 49202 and ranks, 49024 and ranks
Priest 47573 and ranks
Hunter 53241 and ranks

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 00:47:16 +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
c028b118c4 Restore work priest 15286 after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 21:56:31 +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
3f876e89cd Replace some variables
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-25 17:44:06 +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
ApoC
c2a0a18a38 [7158] Added isAlive() check into Unit::SelectHostilTarget()
This can fix some unexpected behavior in some scripts which not checking alive state in main UpdateAI() method.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-24 00:23:09 +01: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
81a866fba7 Implement 267 SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-22 00:54:35 +03:00
DiSlord
d57baebef9 Implemement 255 SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-22 00:54:31 +03:00
DiSlord
01b677ff82 Implement 195 SPELL_AURA_MOD_IGNORE_ABSORB_FOR_SPELL aura (remove unused variable)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-22 00:54:26 +03:00
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
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
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
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
6428d29cd5 [7105] Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-18 19:37:34 +01: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
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
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
arrai
2cfebd6a57 [7094] Implemented spell interrupt flag 0x10 2009-01-17 02:37:44 +01:00
arrai
022e7ad2b5 Removed Unit::waterbreath. This information is not needed for creatures and can be obtained for players by Unit::HasAuraType(SPELL_AURA_WATER_BREATHING) in constant time 2009-01-15 00:17:02 +01:00
DiSlord
09659a0377 Implement paladin 53601 dummy proc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 21:48:45 +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
d544aec1db Implement 53720, 20185, 20186 dummy proc
Fix 31892 (use correct %)

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 01:59:39 +03:00
DiSlord
c97f8a675c Now 35395 not refresh seals
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-14 01:59:29 +03:00
ApoC
e8d32763a6 [7079] Redundant sSpellStore looking removed.
Removed not used variable in for cycle.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-13 21:34:38 +01:00
DiSlord
46a80e8ecc Implement Paladin 31871 and ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-13 22:02:39 +03:00
DiSlord
ba25093ef2 Implement AURA_STATE_FROZEN
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-13 01:17:00 +03:00
DiSlord
48bebc4056 [7063] Absorb auras fixes (add custom handle for some auras)
Fix Shaman 51474 and ranks
Fix Rogue 31130 and ranks
Fix Druid 33851 and ranks
Fix DK 49145 and ranks, 49157 (TODO: need use only on transform), 50462, 53766, 51052,
Fix 41475 - boss cast
Fix 39228, 60218 (item 27770/37220 spells)
Hidden cooldown for 53601.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 19:14:09 +03:00
DiSlord
87a0960cdb [7060] Implement priest dummy proc 47555 and ranks
Disable proc from SPELL_AURA_PERIODIC_DAMAGE (need prevent drop charge in some cases)
Add data for shaman 51556 and ranks (but need dummy for work)

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 01:02:48 +03:00
DiSlord
8b270d67a8 Implement Priest 47509 dummy proc and Ranks
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 00:56:17 +03:00
DiSlord
6b8d42b721 [7057] Restore brocen after client switch (and add new 3 ranks) Shaman enchant spell proc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-09 03:06:38 +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
DiSlord
e573bd9ea8 [7051] Implement some mage dummy triggers (fix typo)
44546 and ranks
44449 and ranks
54747 and ranks

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 03:53:21 +03:00
DiSlord
c2741b50e7 [7049] Work vs Auras
Allow stack some auras from some caster in one
Move apply/remove aura state on apply/remove aura (on 1 add / on last remove)
Correctly fill aura flag and send duration update to client
Not use m_procCharges for store satack amount, used m_stackAmount
Fixes in HandlePeriodicDamage (use m_stackAmount, fix formulas to 303, optimisation)
Fixes in Spell::EffectSchoolDMG (use m_stackAmount, fix formulas to 303)
Remove unused uint32 m_PeriodicEventId from aura struct
Add Unit::RemoveSingleSpellAurasFromStack for remove one Spell auras from stack
Add Aura::RefreshAura() for refresh aura duration

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 01:12:52 +03:00
DiSlord
32a7c35a95 Restore damage calc for some paladin seal after client switch
Allow proc shaman heal shield on non players

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 00:27:24 +03:00
DiSlord
eacc6e069c [7048] Fix typo (incorrect 55440 dummy proc)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-07 21:49:27 +03:00
DiSlord
ccdad44e6c Implement AURA_STATE_HEALTH_ABOVE_75_PERCENT use
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-07 17:22:24 +03:00
DiSlord
93bcb0b91d [7036] Implement one warlock glyph
Restore build after prev commit

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-06 02:02:20 +03:00
DiSlord
b6efea176d [7034] Add support 96 bit spell family mask to triggers
Some fix/add data in table (about 100 records)

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-06 00:26:58 +03:00
DiSlord
675a90b267 [7033] Add some dummy triggers
DK - 49015 and ranks, 51459 and ranks, 48979 and ranks
Druid - 48516 and ranks, 48496 and ranks
Shaman - 55440 glyph
Also fix send AttackStateUpdate on block
Add some spell_proc_event data
Fix sql update for 7031

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 16:55:30 +03:00
DiSlord
8ac2150b88 [7031] Implement some mage, paladin dummy trigers
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 06:01:46 +03:00