Commit Graph

1081 Commits

Author SHA1 Message Date
Machiavelli
7ec351a79d Scripts/Ulduar/Flame Leviathan: Fix Pursue spell (target selection/filtering, emote, and aggro), and clean up some atrocities in the script. 2011-09-26 20:47:51 +02:00
Shocker
6dc09248fd Merge pull request #3162 from megamage/master
Fix incorrect logic in PetAI. Solve #3155.
2011-09-26 06:44:33 -07:00
megamage
780747f5d3 Missing part of the previous commit. 2011-09-26 09:14:12 -04:00
megamage
a35deba186 Fix some crashes caused by spell scripts without checking unit type. Fix #3216 and #3217. 2011-09-26 09:03:33 -04:00
Shauren
062e645637 Scripts/Spells: Bloodlust/Heroism handling changed, it is now possible to use these spells even if caster is under Sated/Exhaustion debuff 2011-09-25 15:08:48 +02:00
QAston
e949ad3adb Core/Spells: spell effect handling improvements
* Call spell effect handlers in 4 modes:
   - SPELL_EFFECT_HANDLE_LAUNCH - called when spell is launched (cast just finished)
   - SPELL_EFFECT_HANDLE_LAUNCH_TARGET - called when spell is launched for each target in spell target map
   - SPELL_EFFECT_HANDLE_HIT - called when spell hits its destination
   - SPELL_EFFECT_HANDLE_HIT_TARGET - called when spell hits it's target from spell target map
*Correctly implement SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL
*Remove spell system hacks which became obsolete with this commit
Core/SpellScripts:
add OnEffectLaunch, OnEffectLaunchTarget, OnEffectHit, OnEffectHitTarget hooks for new effect handle modes and remove OnEffect hook.
A generic rule of thumb how to update your scripts (will work for nearly all cases) for spell system noobs:
if your spell script used GetHitXXXX function, you need to use OnEffectHitTarget, otherwise use
OnEffectHit
2011-09-25 13:29:50 +02:00
Machiavelli
911c7ce3cc Scripts/Ulduar/Flame Leviathan: Fix RX-214 Repair-o-matic station.
Note: Due to an aura system bug, the dummy cooldown aura is refreshed every time the trap spell is cast instead of expiring like it should.
2011-09-24 13:13:15 +02:00
Shauren
29ba648fa3 Scripts/Icecrown Citadel: Fixed possible crash in npc_darnavanAI
Closes #3188
2011-09-24 11:29:49 +02:00
Machiavelli
9692be4cbb Scripts/Ulduar/XT-002: Add gameobject handling for XT-002 door and boundary checking during the encounter. 2011-09-23 13:20:43 +02:00
Machiavelli
9ea40a4746 Scripts/Ulduar/Kologarn:
- Fix arm respawn and reinstall events
- Fix possible erratic event timers
- Fix Focused Eyebeams after recent spell system changes
- Fix looting the chest after the encounter
2011-09-22 21:19:26 +02:00
Machiavelli
c909da08cd Scripts/Ulduar/XT-002: Fix erratic timer issues and stand/submerge spell script targets.
Fixes #2961
2011-09-22 20:13:40 +02:00
Rochet2
a0a22ecbc8 Scripts/Commands: Added .dev command to show <Dev> tag in nickname 2011-09-21 11:35:29 -03:00
QAston
a0030ef334 Really fix build (sorry for that:() 2011-09-21 11:06:31 +02:00
QAston
87d9a1d384 Scripts/TwinValkyr: Fix build. 2011-09-21 10:40:11 +02:00
kiper
cdb4f60a14 Merge pull request #3040
Core/Spell: Fix spell related to reputation in Oracle and Frenzy faction
2011-09-21 10:02:30 +02:00
QAston
82bc917265 Merge pull request #2908 from Drethek/TwinsValk
Scripts:
Twins Valk - Cleanup / Remove Hardcoded Bullet Spawn (Need DB Support - Stalkers Spawns)
Acidmaw - Use Correct Submerge Spell
Trial Of Crusader - Correct Coordinate Spawn
Trial Of Crusader - Correct Open/Close Main Door Timer
Trial Of Crusader - Open/Close On Boss EnterEvadeMode
2011-09-21 00:27:20 -07:00
Shauren
7c3f40b6b7 Compile fix 2011-09-19 13:33:19 +02:00
Shauren
ff66d933d8 Scripts/Icecrown Citadel
* Traps after Deathbringer Saurfang will not turn off anymore
* Fixed Valithria Dreamwalker adds not attacking players

Closes #2343
Closes #2485
Closes #2815
2011-09-19 12:21:36 +02:00
click
872c2d4d63 Core/Build: Fix non-PCH builds 2011-09-18 16:30:18 +02:00
Shauren
8ce80db6e6 Scripts/Icecrown Citadel
* Suppresser adds will not melee attack Valithria Dreamwalker (they still can do that to players)
* Changed DoZoneInCombat calls on summons to randomly selected target from summoner's threat list as the former fails if there is noone within 50 yards

Closes #3094
2011-09-18 11:50:52 +02:00
Machiavelli
a4ea803c83 Edited src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp via GitHub 2011-09-18 12:08:22 +03:00
Machiavelli
35228bdcc1 Scripts/Ulduar: Fix timer issues in Flame Leviathan script, thanks to Svannon.
(Edit via github)
2011-09-18 11:39:35 +03:00
Aokromes
0f908d4b1e Scripts/Shadow Labyrinth: Fix wrong target of Incite Chaos spell 2011-09-18 11:26:22 +07:00
QAston
fe25ce4fa3 Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack. 2011-09-17 00:56:59 +02:00
QAston
c0b1823524 Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget 2011-09-16 23:49:31 +02:00
Shauren
c93c27d056 Scripts/Icecrown Citadel:
* Mark of the Fallen Champion should be a debuff
* Fixed periodic damage taken from Twisted Nightmare on heroic difficulties of Valithria Dreamwalker encounter
2011-09-16 11:29:35 +02:00
Spp
6c943bfb08 Core: Cleanup in MiscHandler::SendAreaTriggerMessage and warning fixes 2011-09-16 10:53:24 +02:00
Shocker
7afb179185 Misc/Util: Add a template function for returning a random element from any container 2011-09-15 21:28:40 +03:00
Nay
791acfebac Core/Spells&GOs: Fix Ritual of Doom.
Thanks QAston and Shocker for helping.
Closes #2535
2011-09-15 17:52:35 +01:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Nay
bff26d9319 Scripts/TOC: Anub'arak should enrage after 10 minutes, not 15. By telsamat.
Closes #2289
2011-09-15 01:46:32 +02:00
QAston
decb20f079 Merge pull request #2991 from megamage/master
Core/Entities: Do not call AddObjectToRemoveList(Pet*) in Map::MoveAllCreaturesInMoveList() - Closes #2892.
Scripts: Fix a crash in npc_brunnhildar_prisoner script. Closes #2825.
2011-09-14 14:27:21 -07:00
kaelima
60f7737272 Core/DataStore: Add struct for LiquidTypeEntry.dbc, unused for now. 2011-09-14 15:02:12 +02:00
Spp-
33ce07bdde Core: Minor cleanups (here and there)
- Fix warning
- Fix some typos
- Correct upper 'for' limit in LoadSkillLineAbilityMap
- Remove use of magic number in a query related to security levels
2011-09-13 14:15:35 +02:00
megamage
937d26e0fe Temp fix of crash caused by npc_brunnhildar_prisoner script. Solve #2825, #2880 and #2772. 2011-09-12 13:00:01 -04:00
Nay
12f5bacb10 Script/Oculus: Fix yells of Drakos.
Closes #831
2011-09-12 00:05:29 +01:00
QAston
ec7da6f911 Core/ScriptedAI: remove ScriptedAI::CanCast function which is not functioning properly (compare that func with Spell::CheckCast to see how it should work) and is unused. Closes #2275. 2011-09-12 00:20:37 +02:00
ZxBiohazardZx
dad5b0bb3c DB/NPC: Spawn npc 25589 and fix some issues in its core script.
Closes #784.
2011-09-11 23:17:24 +01:00
QAston
06b9ae6e11 Core/Unit: Define UNIT_FLAG_UNK_0 as UNIT_FLAG_SERVER_CONTROLLED and remove related redundant creature_template data. 2011-09-11 11:41:55 +02:00
Spp-
45af1238cf Conditions/DisableMgr: converted from singleton to namespace with free functions. 2011-09-09 14:27:23 +02:00
Kaelima
2748ce9e83 Merge pull request #2930 from Fredi/clean
Core/Scripts: Code style and cleanups in npc_special.cpp
2011-09-08 15:40:34 -07:00
Nay
16b76a3119 Core/Scripts: Correct a wrong spell id used in ZG 2011-09-08 19:14:56 +01:00
Spp
d46ef045a6 Fix a typo in 327fe7c than changed the logic of a function and simplify IsXXXAccount functions 2011-09-08 18:32:52 +02:00
Spp-
327fe7c247 Core: Define helper functions to know if an account is Player, Moderator, GM, Admin or Console 2011-09-08 15:11:55 +02:00
Spp-
eddcb8ffbf AccountMgr singleton converted to namespace with free functions as it has no internal state 2011-09-08 10:49:58 +02:00
kaelima
6078eebc45 Fix typo in 9d90c8245b and unintended change in b08900d033b51632e9adef8cb227a71a1061be5f. 2011-09-07 15:09:53 +02:00
kaelima
5e81be4fec Scripts/Ruby Sanctum: Remove unneeded spellscript for Baltharus.
Also let his clone cast enervating brand.
Thanks Shauren.
2011-09-07 09:35:30 +02:00
Spp-
31c615b84f Core/OutdoorPvp: Remove usage of "friend class ..." (Use functions to access private members) 2011-09-07 00:11:43 +02:00
Fredi Machado
2baca2d3ca Core/Scripts: Code style and cleanups in npc_special.cpp
- Removed hungarian notation
- moved types before the const keyword
- applied TC code style
- some code cleanups
2011-09-06 10:16:21 -03:00
Kaelima
cf0921f656 Merge pull request #2889 from Kiperr/master
Small visual correction
2011-09-05 02:39:47 -07:00