Commit graph

480 commits

Author SHA1 Message Date
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
DiSlord
daf24ce90c [7029] Some work vs aura charges
Move to protected: need use SetAuraCharges, GetAuraCharges, DropAuraCharge
Now m_procCharges == 0 if infinite charges, and > 0 for limit
Remove not need UpdateAuraCharges()

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 04:16:53 +03:00
DiSlord
791c54dd0b [7028] Code fix on client change
Remove not need code
Fix some SPELL_AURA_OVERRIDE_CLASS_SCRIPTS aura use

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 02:43:52 +03:00
DiSlord
d65458b0de [7025] Restore work/add new spell post effects
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 02:02:08 +03:00
DiSlord
4b9af01d42 [7023] Remove not used useCharges for IsImmunedToSpell/IsImmunedToDamage
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-04 23:20:21 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
7e5c17b6c3 [7013] Rename recently added function for consistent with already existed. Use it for old cases. 2009-01-03 14:27:28 +03:00
DiSlord
1f4b00a848 [7011] Add check Aura Spell req in Spell::CanCast
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-03 03:07:06 +03:00
DiSlord
dc8649a86a [7008] Remove not used in 303 aura states from code
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-02 23:44:08 +03:00
VladimirMangos
18fb4db8f2 [6993] Fixing FFA PvP player flags for 3.0.3 2008-12-31 14:11:05 +03:00
VladimirMangos
695a630cf3 [6992] More strong checking to prevent stacking passive auras. This fix unexpected statking 16252 and ranks.
Also this checking will prevent staking talent ranks if it will casted at character by some reason in any cases.
TODO: non-talent passive spells like 16252 or 31785 with ranks still as before
not reapplied in lesser rank form if higher rank unlearned. But this possible only at .unlearn command use
and required re-loginning for activation lesser rank spell.
2008-12-31 12:40:47 +03:00
DiSlord
f5c4935ec3 [6990] Check creatures flags_extra for disable melee spells block/parry
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-31 01:14:38 +03:00
arrai
9a411858d0 [6987] Implemented aura dependent creature target prioritization more correctly 2008-12-30 20:05:51 +01:00
DiSlord
0db6b31b70 [6985] Fix crit chance calc
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-30 04:22:12 +03:00
VladimirMangos
3f397ed035 [6984] Update crushing blow chance calculation for 3.0.3.
Required 4 level difference.
Player also can crushing blow if controlled and then considered as creature.
2008-12-30 04:03:54 +03:00
VladimirMangos
71c67a5202 [6983] Revert [6978]. Useless for master branch. But ported to mangos-0.12 version will useful at branch.
* Remove unused arg of Unit::RollMeleeOutcomeAgainst and cleanup related code: Block crit implemented for spell by another way,
* Also comment out SPELL_AURA_IGNORE_COMBAT_RESULT aura check for block: not exist currently spell with this aura for bloc case.
2008-12-30 03:30:57 +03:00
DiSlord
a1494d29dc [6980] Add some fixes to trigger system
Allow proc from every kill
Fix (and remove hack) priest 32379 and rank (backfire damage after 1 sec)
Remove not need stack overflow protection

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-30 01:49:28 +03:00
Machiavelli
04af12e82a [6978] Allow crashing blow only from auto-attack.
Signed-off-by:  Machiavelli <Machiavelli@getmangos.com>

Thanks to Dreamer for patch preparing for mangos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-29 23:28:38 +03:00
VladimirMangos
c5976f93da [6975] Fixed spell damage calculation for negative EffectDieSides.
Thanks to NoFantasy for testing.

Also small code style apply to random generation functions.
2008-12-29 23:00:12 +03:00
ApoC
784cf098b0 [6968] Replace check for spell category removed in 3.0.x with spellid.
Should fix not interrupting wand casting by other spell cast.

Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-29 00:57:45 +01:00
DiSlord
53127cd6d9 [6966] Fix bug adding XP in DK trigger aura
Use MaNGOS::XP::GetGrayLevel for honor target gray level

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-28 23:32:26 +03:00
Arthorius
27175a9ad8 [6965] Implement aura SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE.
This must let work triggering part of:
DK talents 49182, 49027, 49149, 49223, 50880, 55610 and ranks
Warrior glyph item 43418
And some boss spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-28 22:36:42 +03:00
VladimirMangos
dd65b8b840 Apply mangos code style. 2008-12-28 22:36:08 +03:00
False.Genesis
c1c6f770ed [6962] Update sanctuary flag.
This also will fixed opposition players allways unattackable state.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-28 06:51:49 +03:00
DiSlord
7a9346fe3d Prepare for master tree
Remove some unused in 303 data from table
Fix some table data
Fix send (change in 303) SMSG_SPELLDAMAGESHIELD opcode

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-28 00:10:48 +03:00
DiSlord
30908fb5ff Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-27 18:29:03 +03:00
False.Genesis
82c94b4101 [6948] Fixed unattackable NPC summoned pets.
Not set player's pet only UNIT_FLAG_PVP_ATTACKABLE flag for creature's pets.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-26 15:18:10 +03:00
VladimirMangos
3488c1fee3 Prevent using loading pet from DB code for non-player pets. 2008-12-26 12:47:03 +03:00