Commit graph

957 commits

Author SHA1 Message Date
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
DiSlord
9d431700c3 [6946] Use blizzlike formula for armor reduction damage
Implement use CR_ARMOR_PENETRATION rating

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-26 00:45:33 +03:00
DiSlord
d22d08d6b2 Add all missing generic family spell to HandleProcTriggerSpell
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-25 19:34:33 +03:00
DiSlord
5c71f2b705 Cleanup unused spell in HandleProcTriggerSpell
Add all new scripted triggers to HandleProcTriggerSpell

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-25 02:51:56 +03:00
DiSlord
92c7edffe0 Fix send opcode (for 303)
Update to 303 master

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-23 19:56:08 +03:00
DiSlord
bae58eb069 Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-23 18:03:21 +03:00
Wyk3d
ed4efc317c [6928] Corrected the handling of evade and threat for creature summoned pets. Should fix some of the setVisibility crashes. 2008-12-22 12:48:19 +03:00
DiSlord
ba868910e2 [6921] Fixed level depend spell damage calculation (limit it to spell base - max level)
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-22 12:46:53 +03:00
DiSlord
061e73492e Use MiscB as stat for SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-20 23:33:35 +03:00
DiSlord
5f4d5533e7 Some check, comments in HandleDummyAuraProc
Added new spell ranks for some shaman talent

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-20 04:19:46 +03:00
DiSlord
3604f3fa1f Fixed last comit comments, names 2008-12-17 00:41:07 +03:00
DiSlord
668c3d4b4c * Better implement 202 SPELL_AURA_IGNORE_COMBAT_RESULT based on SpellClassMask
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-16 23:25:27 +03:00
DiSlord
a33a7f67f7 * Implement 246 SPELL_AURA_MOD_DURATION_OF_EFFECTS_BY_DISPEL
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-16 22:43:18 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
DiSlord
7c8d69e2b0 * Fix some warlock talent work
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-12 01:36:28 +03:00
DiSlord
6c02f00a93 Merge branch 'master' of git@github.com:mangos/mangos.git into procflag 2008-12-12 01:34:09 +03:00
VladimirMangos
3da9f3f4cc [6889] Backport some not client version specific changes and fixes from 303 branch. 2008-12-09 14:08:29 +03:00
VladimirMangos
52da5abf4d [6879] Not apply casting time spell bonuses mods to creature (non-pets) casted spells with 0 cast time. 2008-12-09 00:28:28 +03:00
DiSlord
1ff2b7fc8b [6876] * Not drop charge for 1120 and ranks (fix SPELL_AURA_CHANNEL_DEATH_ITEM aura work) 2008-12-09 00:28:26 +03:00
DiSlord
c78b5644c7 [6874] * Not remove spell mods for not finished spells
* Ignore self miss in drop combopoints (problems vs 5171 and ranks still exist)
* Allow cast spell on immune if spell can removeit by dispell
2008-12-09 00:28:25 +03:00
DiSlord
9b842b6fdc Work under spell mods
* Add support > 64 bit spellFamily mask
    * Remove not used fields in SpellModifier
    * Remove not used (and not correct work vs charges) GetTotalFlatMods, GetTotalPctMods
    * Use DBC based data for spell_affect
    * More better work SPELL_AURA_ADD_TARGET_TRIGGER aura

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-08 23:22:39 +03:00
VladimirMangos
43f713f660 [6879] Not apply casting time spell bonuses mods to creature (non-pets) casted spells with 0 cast time. 2008-12-06 08:05:53 +03:00
DiSlord
223fe7321f [6876] * Not drop charge for 1120 and ranks (fix SPELL_AURA_CHANNEL_DEATH_ITEM aura work) 2008-12-06 04:39:36 +03:00