Core/Scripts: Fixes ValidateSpellScripts, and type mismatch of parameters
This commit is contained in:
@@ -74,8 +74,8 @@ namespace Scripts.Spells.Items
|
||||
public const uint StrengthOfTheTaunkaHero = 71561; // +700 Strength
|
||||
|
||||
//Defibrillate
|
||||
public const int GoblinJumperCablesFail = 8338;
|
||||
public const int GoblinJumperCablesXlFail = 23055;
|
||||
public const uint GoblinJumperCablesFail = 8338;
|
||||
public const uint GoblinJumperCablesXlFail = 23055;
|
||||
|
||||
//Desperatedefense
|
||||
public const uint DesperateRage = 33898;
|
||||
@@ -898,9 +898,9 @@ namespace Scripts.Spells.Items
|
||||
// 8342 - Defibrillate (Goblin Jumper Cables) have 33% chance on success
|
||||
// 22999 - Defibrillate (Goblin Jumper Cables XL) have 50% chance on success
|
||||
// 54732 - Defibrillate (Gnomish Army Knife) have 67% chance on success
|
||||
[Script("spell_item_goblin_jumper_cables", 33, SpellIds.GoblinJumperCablesFail)]
|
||||
[Script("spell_item_goblin_jumper_cables_xl", 50, SpellIds.GoblinJumperCablesXlFail)]
|
||||
[Script("spell_item_gnomish_army_knife", 67, 0)]
|
||||
[Script("spell_item_goblin_jumper_cables", 33u, SpellIds.GoblinJumperCablesFail)]
|
||||
[Script("spell_item_goblin_jumper_cables_xl", 50u, SpellIds.GoblinJumperCablesXlFail)]
|
||||
[Script("spell_item_gnomish_army_knife", 67u, 0u)]
|
||||
class spell_item_defibrillate : SpellScript
|
||||
{
|
||||
public spell_item_defibrillate(uint chance, uint failSpell)
|
||||
|
||||
@@ -289,7 +289,8 @@ namespace Scripts.Spells.Quest
|
||||
[Script("spell_q11515_fel_siphon_dummy", SpellEffectName.Dummy, 0u, CreatureIds.FelbloodInitiate, CreatureIds.EmaciatedFelblood, true)]
|
||||
class spell_generic_quest_update_entry : SpellScript
|
||||
{
|
||||
public spell_generic_quest_update_entry(SpellEffectName spellEffect, uint effIndex, uint originalEntry, uint newEntry, bool shouldAttack, uint despawnTime = 0)
|
||||
public spell_generic_quest_update_entry(SpellEffectName spellEffect, uint effIndex, uint originalEntry, uint newEntry, bool shouldAttack) : this(spellEffect, effIndex, originalEntry, newEntry, shouldAttack, 0) { }
|
||||
public spell_generic_quest_update_entry(SpellEffectName spellEffect, uint effIndex, uint originalEntry, uint newEntry, bool shouldAttack, uint despawnTime)
|
||||
{
|
||||
_spellEffect = spellEffect;
|
||||
_effIndex = (byte)effIndex;
|
||||
|
||||
Reference in New Issue
Block a user