示例#1
0
文件: Spell.cs 项目: Marteen21/Radar
 public bool CastIfHasBuff(WoWGlobal wowinfo, WoWUnit unit) {
     if (unit.HasBuff(this.ID)) {
         this.SendCast();
         return true;
     }
     return false;
 }
示例#2
0
文件: DoT.cs 项目: Marteen21/Radar
 public virtual bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(this.ID) /*&& !wowinfo.SpellIsPending*/) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
示例#3
0
 public override bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(this.ID) && !wowinfo.SpellIsPending && wowinfo.HasRunesFor(cost)) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
示例#4
0
 public bool CastIfHasRunesFor(WoWGlobal wowinfo) {
     if (wowinfo.HasRunesFor(cost)) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
示例#5
0
文件: Curse.cs 项目: Marteen21/Radar
 public override bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(cot) && !unit.HasBuff(cote) && !unit.HasBuff(cow) && !unit.HasBuff(coe)) {
         this.SendCast();
         return true; 
     }
     else {
         return false;
     }
 }