"Fixed" Song of Arcane Power
"Fixed" Song of Arcane Power. 2DA was missing the impact script. Also made Song of Arcane Power respect the Deaf effect.
This commit is contained in:
parent
880d0e5527
commit
d46ce7c19c
@ -1849,7 +1849,7 @@
|
||||
1845 Unicorn_Companion 16825308 is_LsPlanar C P 0 0x00 0x01 prc_heal_comp **** **** **** **** **** **** 1 **** **** **** **** **** **** **** **** **** **** **** **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** 1844 3 **** 0 0 **** 0 248778451 **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
|
||||
1846 Lammasu_Companion 16826223 is_Planar C P 0 0x00 0x01 prc_heal_comp **** **** **** **** **** **** 1 **** **** **** **** **** **** **** **** **** **** **** **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** 1844 3 **** 0 0 **** 0 248843987 **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
|
||||
1847 Androsphinx_Companion 16826550 is_GrPlanar C P 0 0x00 0x01 prc_heal_comp **** **** **** **** **** **** 1 **** **** **** **** **** **** **** **** **** **** **** **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** 1844 3 **** 0 0 **** 0 248909523 **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
|
||||
1848 SongArcanePower 16827005 ife_maximize G P v 0x00 0x01 **** **** **** **** **** **** **** **** 500 **** **** **** **** **** **** **** self 500 **** **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** 10 **** 3 **** 0 0 **** 0 1995 **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
|
||||
1848 SongArcanePower 16827005 ife_maximize G P v 0x00 0x01 prc_sch_arcanep **** **** **** **** **** **** **** 500 **** **** **** **** **** **** **** self 500 **** **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** 10 **** 3 **** 0 0 **** 0 1995 **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
|
||||
1849 Close_Wounds 16828321 ife_fasthealing1 C S v 0x1d 0x0b sp_close_wounds **** 3 **** **** **** **** 3 500 **** **** **** **** **** vs_chant_conj_hm vs_chant_conj_hf **** 500 **** **** **** **** 0 **** **** **** **** **** Positive 0 **** **** **** **** **** 5 **** 1 16828322 1 1 **** 0 **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 3 ****
|
||||
1850 Revivify 16828323 is_RaisDead C T vs 0x38 0x2b sp_revivify **** 5 **** **** **** **** 5 1500 head **** **** vco_lgrinholy01 sco_lgrinholy01 vs_chant_conj_hm vs_chant_conj_hf touch 1000 **** **** **** **** 0 **** **** **** **** **** **** 0 **** **** **** **** **** 7 **** 1 16828324 1 0 **** 0 **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** 5 ****
|
||||
1851 Bless_Water 16828325 is_blesswater T T vs 0x38 0x01 sp_bless_water **** 1 **** 1 **** **** 1 1500 **** **** **** **** **** vs_chant_ench_hm vs_chant_ench_hf **** 1000 **** **** **** **** 0 **** **** **** **** **** **** 0 **** **** **** **** **** 18 **** 1 16828337 1 0 **** 0 **** **** **** 0 **** **** **** **** **** **** **** **** **** **** **** 1 **** 1 **** 1 1
|
||||
|
@ -16,11 +16,20 @@ void main()
|
||||
{
|
||||
object oCaster = OBJECT_SELF;
|
||||
|
||||
if (PRCGetHasEffect(EFFECT_TYPE_SILENCE,OBJECT_SELF))
|
||||
if (PRCGetHasEffect(EFFECT_TYPE_SILENCE, oCaster))
|
||||
{
|
||||
FloatingTextStrRefOnCreature(85764,OBJECT_SELF); // not useable when silenced
|
||||
FloatingTextStrRefOnCreature(85764, oCaster); // not useable when silenced
|
||||
return;
|
||||
}
|
||||
else if (PRCGetHasEffect(EFFECT_TYPE_DEAF, oCaster))
|
||||
{
|
||||
// 20% chance to return if deaf
|
||||
if (d100() <= 20)
|
||||
{
|
||||
FloatingTextStringOnCreature("You can't hear well enough to use this ability", oCaster);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(GetSkillRank(SKILL_PERFORM, oCaster) < 12)
|
||||
{
|
||||
FloatingTextStringOnCreature("You need 12 or more ranks in perform skill.", oCaster, FALSE);
|
||||
@ -51,9 +60,9 @@ void main()
|
||||
else
|
||||
nBonus = 0;
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eVis, oCaster, 9.0f);
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eVis, oCaster, TurnsToSeconds(1));
|
||||
SetLocalInt(oCaster, "SongOfArcanePower", nBonus);
|
||||
DelayCommand(9.0f, DeleteLocalInt(oCaster, "SongOfArcanePower"));
|
||||
DelayCommand(TurnsToSeconds(1), DeleteLocalInt(oCaster, "SongOfArcanePower"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user