Commit Graph
2717 Commits
Author SHA1 Message Date
ariel- 85c9907b07 Core/Spell: fix some spells that shouldn't allow stealth or invisibility
- Touch of Zanzil
- Glowing Blood
- Lambent Blood
- Vibrant Blood
- Black Blood
- Perpetual Instability
2017-06-11 17:50:32 +02:00
Aokromes f8d9d954d1 Get zone/area IDs from vmap data in the liquid update
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
* Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject
* Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields
* Clean up liquid state handling on Unit and Player
* Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject.
2017-06-09 13:20:37 +02:00
Aokromes ac3dbcb880 Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list 2017-06-07 09:53:04 +02:00
Aokromes 0bb27ecd4b Pet/Guardian AI hook re-organizing (#19824)
* Pet/Guardian AI hook re-organizing:
- Adjust OwnerAttacked/OwnerAttackedBy hooks on CreatureAI to fire for all owned units, not just player pets. This should allow guardians to more reliably recognize valid targets.
- Kill off the AttackedBy hook. While it was defined in CreatureAI.h as virtual, it was only ever invoked for player pets in specific situations. This makes it classic developer bait.
  - Adjust PetAI to use DamageTaken instead of AttackedBy.
  - Adjust behavior of AttackStart on PetAI to compensate.
2017-06-07 02:50:14 +02:00
treeston 24c89fba76 Re-check target evade state on projectile impact and adjust accordingly. This fixes the incorrect message ("Absorb" instead of "Evade"), and also removes the root cause of the original evade follow bug (that was prevented in 1945874). 2017-06-06 19:32:18 +02:00
Keader bc1887c5df Core/Spells: Allows Dispersion under Freeze (stun by hunter trap) 2017-06-06 07:55:49 +02:00
Keader 1051412e50 Core/Spells: Allows Dispersion and Barkskin to be used under death coil 2017-06-06 07:53:19 +02:00
Keader 4292ac7039 Core/Spells: Removed duplicated check again followup 3a0417f7128292995a4085a0114ed59fbfa64325
to send some info to client
2017-06-01 14:05:32 +02:00
Keader 52551be039 Core/Spells: Removed duplicated check
unitTarget was checked twice in Spell::EffectTaunt
2017-06-01 14:05:14 +02:00
ariel- e778c4c628 Core/Spell: in case of immunity, check all effects to choose correct procFlags, as none has technically hit 2017-05-30 09:21:03 +02:00
Ryan a289acff81 Core/Spells: Fix SPELL_AURA_FIXATE 2017-05-28 20:14:31 +01:00
Ryan 1442984686 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-28 19:10:00 +01:00
treeston e361682377 Quickfix a bug introduced by 2f19d97 which prevented GTAoE from being cast. 2017-05-28 03:18:35 +02:00
ariel- 8082b3165e Core/Spell: abort channeling if no valid targets are found after searching
Closes #17624
2017-05-28 03:11:57 +02:00
Ryan 20726edec2 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-19 23:49:46 +01:00
Aokromes 0fbcdca05e Core/Collision: Replaced phasemask with proper phases in GameObject c…
…ollision calculation
2017-05-06 01:55:17 +02:00
xinef1 b88200cd58 Core/Misc: Various crash fixes 2017-05-05 01:59:34 +01:00
roc13x 02e174d7e9 Cleanup 2017-05-05 00:10:25 +01:00
roc13x 7d6884dcb5 Core/Spells: Fix SPELL_AURA_PROC_ON_POWER_AMOUNT
Will re-implement the eclipse handling in spellscripts later
2017-05-04 21:16:50 +01:00
roc13x c2fd775e5d Add missing changes
Core compiles now
2017-05-04 05:24:21 +01:00
ariel- 07a182f1d3 Core/Spell: register spell mod owner properly on spell cast
- This fixes pets and totems getting mods from owner
2017-05-04 05:04:19 +01:00
ariel- 2ed7602af2 Core/Spell: fix broken Unit::GetHighestExclusiveSameEffectSpellGroupValue
- Affects 3 aura effects currently, should be rewritten with GetTotalAuraModifier maybe?
2017-05-04 05:03:08 +01:00
ariel- d2d7a2cb14 Core/Spell: fix nopch build 2017-05-04 05:02:36 +01:00
ariel- eee81e3748 Core/Spell: fix nopch build x2 2017-05-04 05:02:26 +01:00
ariel- 9dbbe92875 Core/Spell: build fix 2017-05-04 05:02:05 +01:00
ariel- 76349ea8ce Core/Spell: fixed SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT to actually check effects
- This commit enables stack rule 3 to be properly used to fix auras that should be active but only one providing effects, even if the spell has multiple auras

Closes #19454
2017-05-04 05:01:47 +01:00
ariel- 091100f795 Core/Spell: check aura positivity per effect on spell hit
- Fixes applying DR to positive effects, and changing duration of whole aura

Closes #19447
2017-05-04 05:01:17 +01:00
ariel- e9599d136b Core/Aura: fix SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE unapply case for dead players 2017-05-04 04:49:50 +01:00
ariel- 1689db1451 Core/Spells: fix some db errors 2017-05-04 04:43:55 +01:00
ariel- 9f5b3920e2 Core/Spells: fix Hand of Justice proc chance and reduce it past level 60.
Ref #7789
2017-05-04 04:35:28 +01:00
xinef1 ae4b91bcf6 Fixed setting and unsetting of m_spellModTakingSpell 2017-05-04 04:32:26 +01:00
Shauren bba87cfeee Core/Auras: Allow passive auras from items to stack
(cherry picked from commit 8453d7dae25823dd5d2ecf2b718a469c0553214c)
2017-05-04 04:27:59 +01:00
roc13x 557f714a10 Fix spell dst execution time 2017-05-04 04:26:51 +01:00
ariel- 288a13861d Core/Spell: properly add SPELLMOD_COOLDOWN to spells without initial cooldown
Closes #15605
2017-05-04 04:26:09 +01:00
Gerhood 0e1cc63055 Core/Spells: implement Mad/Crazy Alchemist's potions 2017-05-04 04:17:24 +01:00
ariel- 1f6fa54465 Core/Spell: build fix 2017-05-04 04:14:12 +01:00
ariel- 3ccdf57f4a Core/Spell: unified handling of SPELL_ATTR5_USABLE_WHILE_* attributes
Allowed mechanic mask is calculated on startup and auras checked against those mechanics
Closes #18798
2017-05-04 04:13:49 +01:00
ariel- abae912986 Core/Spell: modified HitMask for new default procs 2017-05-04 04:12:45 +01:00
ariel- 7f4557c943 Core/Spell: add more aura types to default procs
Ref #18542
2017-05-04 04:12:29 +01:00
ariel- 921efdc1fa Core/Spell: consider spells with no targets for the purpose of finish procs
Closes #18799
2017-05-04 04:10:22 +01:00
ariel- 69625f32fe Core/Spell: kill old charge restoring system. Mods are fully handled by proc system now.
- Fixes an edge case of spell failing due to out of range and re-adding charges to an existing aura.
2017-05-04 04:00:58 +01:00
ariel- a15aaf68c3 Core/Spell: reverted changes for NO_TARGET handling
Partial revert of 584d347b70be521d7431dfe1694b80f2e95b957b

Closes #18666
2017-05-04 03:59:55 +01:00
ariel- c89bf30b4d Missing change 2017-05-04 03:59:33 +01:00
ariel- 71e3339636 Core/Spell: Prevent NO_TARGET auras from actually selecting target 2017-05-04 03:51:44 +01:00
ariel- 0814834492 Core/Spell: reverted stun aura handling
Partial revert of 50a3ce5703bdaa4fe16e2e773eabafa9a4818083

Closes #18487
Closes #18490
Closes #18497
2017-05-04 03:47:21 +01:00
ariel- be418d3671 Core/Spell: fix for hitmask being ignored in finish phase procs 2017-05-04 03:45:37 +01:00
ariel- d7876762f0 Core/Spell: add an exception for Cyclone ignoring it's own immunity using dispel type
- Unsure of what is the correct check, most generic thing I could make

Closes #18479
2017-05-04 03:44:41 +01:00
ariel- 62f9b5a0a1 Core/Misc: readd some codestyle changes inadvertently reverted 2017-05-04 03:42:24 +01:00
ariel- 4f3f455de4 Core/Spell: partial revert of SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE immunity handling
- Bonus: without breaking Banish... yay!

Closes #18370
2017-05-04 03:35:47 +01:00
ariel- 6e62130e96 Core/Spell: improved immunity logic for dispels 2017-05-04 03:26:54 +01:00